Explain why we use named volumes, link to Docker's explanation about named volumes vs bind mounts #613
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
(Thanks to Sutty.nl for the questions and research which led to this report, apologies for my probably-dubious translation from Spanish)
Many folks using Docker are probably used to using bind mounts; these are recommended in many (most?) upstream docker-compose files, and at one point Docker recommended bind mounts over named mounts due to poor performance of the Linux named volume storage drivers.
Currently, Co-op Cloud exclusively uses named volumes (except for rare special-case bind mounts, like Traefik and Caddy getting access to the host's
/var/run/docker.sock
).It could be useful to link to Docker's "Good use cases for volumes" page, and/or the "Use volumes for write-heavy workload" docs to help explain why we recommend named volumes, and what potential trade-offs there are.