Ex1:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
docker run -v /data/myfolder --name container1 image-name-1 docker run --volumes-from container1 image-name-2 docker run -v myfolder:/data/myfolder image-name-1 docker run -v myfolder:/data/myfolder image-name-2 Building from file # Ubuntu image FROM ubuntu:14.04 for the image to test the use of the other data only volume. docker build -t bitplan/dataonly:0.0.1 -f Dockerfile.data . docker build -t bitplan/dataexample:0.0.1 . |