Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi Melissa - thanks for the fantastic intro to Docker Volumes. Is it possible to present a DO Volume to to the Docker Daemon so images and containers can be stored in the DO volume instead of instance storage.? Thanks, Rod
Will this work for Docker containers which are running in the docker-swarm cluster?
Hi Melissa - Nice explanation thank you.
Please correct me if I am wrong, In the “3 — Creating a Volume from an Existing Directory with Data” the second command: #docker run --rm -v DataVolume3:/datavolume3 ubuntu ls DataVolume3
the last argument after image name should be “datavolume3” not “DataVolume3”
In example 3, docker run -ti --rm -v DataVolume3:/var ubuntu, the arguments (DataVolume3 and /var) are in reverse order, it works this way - “docker run -ti --rm -v /var:DataVolume3 ubuntu”. directory in the host machine comes before the directory that gets created in the container.
Thanks for the great article!
You said that:
Often, we’ll want multiple containers to attach to the same data volume. This is relatively straightforward to accomplish, but there’s one critical caveat: at this time, Docker doesn’t handle file locking. If you need multiple containers writing to the volume, the applications running in those containers must be designed to write to shared data stores in order to prevent data corruption.
I’m not sure I completely understood this section. Are you talking about multiple apps writing to the same file (stored on the volume) at the same time? Is this situation any different from how normal Linux file locks work (advisory locking)?
This comment has been deleted
Hi Melisa, In Step 4, is it possible to mount it as shared volume to multiple containers and simultaneously read-write on them? Thanks Karam
Hi Guys, I have post a question on same site:
https://www.digitalocean.com/community/questions/docker-container-share-volume-is-not-working
If you got chance please provide me your recommendations.