You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use docker_login to write credentials to ~/.docker/config.json without verification.
ISSUE TYPE
Feature Idea
COMPONENT NAME
docker_login
ADDITIONAL INFORMATION
The docker_login module performs two processes:
it does an actual docker login,
which writes to the ~/.docker/config.json file.
So this module has an all-or-nothing approach - it cannot be used if the registry is not fully provisioned and responsive.
But often when provisioning a host, that is not the case, and we just need to write that file - and we know the data is correct. In such a case we can't use this module.
I can write that file manually in about half a dozen tasks: checking if the file exists, writing to it, etc. But it would be nice to do that with the docker_login module instead.
e.g.
- docker_login:
registry_url: registry.example.comusername: usernamepassword: passwordlogin: false # <---- the new feature; default true so backwards compatible
WORKAROUND
For example, this is to manually write the file on localhost:
SUMMARY
Use
docker_login
to write credentials to~/.docker/config.json
without verification.ISSUE TYPE
COMPONENT NAME
docker_login
ADDITIONAL INFORMATION
The
docker_login
module performs two processes:docker login
,~/.docker/config.json
file.So this module has an all-or-nothing approach - it cannot be used if the registry is not fully provisioned and responsive.
But often when provisioning a host, that is not the case, and we just need to write that file - and we know the data is correct. In such a case we can't use this module.
I can write that file manually in about half a dozen tasks: checking if the file exists, writing to it, etc. But it would be nice to do that with the
docker_login
module instead.e.g.
WORKAROUND
For example, this is to manually write the file on localhost:
It would be so much nicer to use the
docker_login
module instead.The text was updated successfully, but these errors were encountered: