Docker Engine Authentication
As explained in the Marathon
docs
using private registries requires that credentials are provided using an
archive. This archive is generated during cluster provisioning on all Mesos
agents based on credentials in credentials/secret.yml
.
Requires the credentials for all Docker registries to log into to be defined via
the docker_credentials
configuration variable.
Note: this will run docker login
on all hosts.
Configuration
Defaults are set in defaults/main.yml
.
docker_credentials
:Credentials for authenticating access to private Docker registries.
For each registry, specify the server, username, password and email. E.g.:
docker_credentials: - server: docker.example.com username: pull-user password: secret email: pull-user@example.com - server: quay.io username: pull-user2 password: secret email: pull-user2@example.com
Default:
docker_credentials: []