Hi:
docker_image module:
Q: Does Ansible upload any directories and files co-located with the Dockerfile it is building the image for?.
Thanks,
BK
Hi:
docker_image module:
Q: Does Ansible upload any directories and files co-located with the Dockerfile it is building the image for?.
Thanks,
BK
Not really. Docker was pretty emergent when this was written (and still is to a large degree).
aside – Ultimately, I’m not sure if the docker_image module for ansible makes sense long term, as it seems the common build case would be either a DockerHub hook or Jenkins triggering the docker build.
Having the docker module to pull and set containers running makes sense to me, but this one always felt weird, as does ec2_ami.
If you mean, docker hub integration, at the moment it does not. Right now, the docker_image module doesn’t communicate with docker hub at all. I’ve just asked over on the devel list if we might want to push code that downloads from docker hub into the docker_image module. However, that wouldn’t address uploading (I don’t believe there’s currently any ansible code that uploads to dockerhub). Adding some would likely be welcome although we should definitely discuss on the devel list what that would look like and where it should live.
-Toshio