I have two docker images. One of the docker image (from first container), when ran, generates some files, which needs to be consumed by the another container.
Can I do this?
Rene's answer works, but you could share data without using the host's directory (container1 ==> container2):
docker run -v /data/myfolder --name container1 image-name-1 docker run --volumes-from container1 image-name-2
1.4m articles
1.4m replys
5 comments
57.0k users