Commit graph

8 commits

Author SHA1 Message Date
Olaf Kilian
85cc47c9e1 Default registry to docker hub 2015-10-23 06:28:28 +02:00
Olaf Kilian
3bcb24e656 Added more meaningful fail messages on Docker API 2015-05-07 09:36:32 +02:00
Olaf Kilian
30fa6e3ea4 Added default email address 2015-05-07 09:35:40 +02:00
Olaf Kilian
3d3efa3614 Removed unused import of sys module 2015-05-07 09:15:04 +02:00
Olaf Kilian
f5e7ce00e7 Extract only the hostname part from self.registry
This is needed for update_dockercfg() to register only the host part
of a specified registry URL in the .dockercfg.
2015-05-06 22:43:28 +02:00
Olaf Kilian
7a2a75f6c0 Remove registry from exit_json because misleading
docker-py is not returning the name of the registry
if already logged in. It can differ from the registry
specified by the user, which was return as registry.
2015-05-06 22:33:31 +02:00
Olaf Kilian
feb20eeadd Update PR based on review from @resmo 2015-05-06 22:28:36 +02:00
Olaf Kilian
772e92eca9 Add docker_login module
- Ansible version of "docker login" CLI command
- Persists Docker registry authentification in .dockercfg (only login once - no need to specify credentials over and over again anymore)
- Works for all other docker-py based modules (docker, docker_images) as well as the Docker CLI client
2015-05-03 17:13:34 +02:00