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.

  • mvirts@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    Only one way to find out :D

    I mean in test, definitely in test not production I swear. I’m staying late working on unrelated projects.

  • breadsmasher@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    1 year ago

    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?

  • DJArbz
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    Don’t do it, you’re going to mess up the container permissions and most likely break anything that uses a named volume.