Docker Registries Authentication

If you need to authenticate to one or more docker registries you can define the authentication information at the global, run or task level. The values will be merged toghether (with override precedence: task -> run -> global).

Example per run registries configuration

  1. runs:
  2. - name: myrun
  3. docker_registries_auth:
  4. 'index.docker.io':
  5. username: 'username'
  6. password:
  7. from_variable: dockerpassword
  8. # A private registry
  9. 'myprivateregistry.myorg.com':
  10. username:
  11. from_variable: myprivareregistry_username
  12. password:
  13. from_variable: myprivareregistry_password
  14. # A local registry referenced by ip:port
  15. '192.168.122.1:5000':
  16. username: 'username'
  17. password: 'xxxxxxxxxxxx'
  18. tasks: