Report this

What is the reason for this report?

Docker Compose Bind Mount or Volume with DO Volume

Posted on October 30, 2020

https://docs.docker.com/storage/ says “Bind Mounts” are inferior to “Volumes”. But volumes run on the host machine’s disk, not the DO Volume.

Changing the Docker “data root” could move all things Docker to the DO Volume, but I worry about a) persisting unnecessary data and b) running two hosts from the same data root.

https://stackoverflow.com/questions/36014554/how-to-change-the-default-location-for-docker-create-volume-command

What’s the best way to persist a docker-compose.yml app’s data on a DO volume?

Thank you!

The developer cloud

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

Start building today

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