# Does Ansible upload directories and files co-located with Dockerfile?

**URL:** <https://forum.ansible.com/t/does-ansible-upload-directories-and-files-co-located-with-dockerfile/16307>\
**Category:** Ansible Project\
**Created:** [September 23, 2014, 12:43pm UTC](https://forum.ansible.com/t/does-ansible-upload-directories-and-files-co-located-with-dockerfile/16307 "2014-09-23T12:43:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bk\_Lau](https://avatars.discourse-cdn.com/v4/letter/b/a9adbd/32.png) [@Bk\_Lau](https://forum.ansible.com/u/Bk_Lau)\
**Post date:** [September 23, 2014, 12:43pm UTC](https://forum.ansible.com/t/does-ansible-upload-directories-and-files-co-located-with-dockerfile/16307/1 "2014-09-23T12:43:06Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [September 23, 2014, 7:25pm UTC](https://forum.ansible.com/t/does-ansible-upload-directories-and-files-co-located-with-dockerfile/16307/2 "2014-09-23T19:25:23Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Toshio\_Kuratomi](https://avatars.discourse-cdn.com/v4/letter/t/41988e/32.png) [@Toshio\_Kuratomi](https://forum.ansible.com/u/Toshio_Kuratomi)\
**Post date:** [September 23, 2014, 7:26pm UTC](https://forum.ansible.com/t/does-ansible-upload-directories-and-files-co-located-with-dockerfile/16307/3 "2014-09-23T19:26:43Z")

</div>

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
