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
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