this post was submitted on 25 Jul 2023
4 points (83.3% liked)

Docker

452 readers
9 users here now

founded 1 year ago
MODERATORS
 

Is it a bad idea to recursively change the permissions for the /var/lib/docker directory? That directory is owned by root:root and the permissions are rwx--x---.

I'm hoping to be able to access my named volumes without using sudo so that I can easily back them up.

you are viewing a single comment's thread
view the rest of the comments
[–] aseriesoftubes 1 points 1 year ago (1 children)

I think you’re thinking of bind mounts. Named volumes live in /var/lib/docker/volumes.

[–] breadsmasher 1 points 1 year ago

Gotcha - my mistake.

Something like this? https://stackoverflow.com/a/39125414