Ansible docker module missing CP command?
You can also use the synchronize command ~ examples provided in this link:
http://opensolitude.com/2015/05/26/building-docker-images-with-ansible.html
- You didn't. Ansible's docker module does not support copying files or folders from a container.
- There is no simple way to do so. I mean you need a hack. Off the top of my head you can play with '-' argument for docker
cp
option.
However from my point of view if you wish to copy something into a container you're probably doing something wrong. Containers should be ephemeral.