* Don't extract hostname part from docker_url since this leads to
docker CLI client not recognizing Docker Hub credentials set by
docker_login module anymore (looks for the full URL as a key).
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.
- 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