this post was submitted on 25 Jul 2023
4 points (83.3% liked)
Docker
452 readers
2 users here now
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Why are your named volumes related to /var/lib/docker at all?
If you want to back up the data, you just need to access wherever the host directory is.
/some/home/directory:/container/directory
You only need access to that host directory and back that up?
I think you’re thinking of bind mounts. Named volumes live in /var/lib/docker/volumes.
Gotcha - my mistake.
Something like this? https://stackoverflow.com/a/39125414