linuxserver / docker-ddclient

GNU General Public License v3.0
139 stars 36 forks source link

Adding :Z to parameters for -v to automaticly get permissions when creating container #82

Closed fennectech closed 5 months ago

fennectech commented 5 months ago

Adding :Z to the -v parameter will cause docker to automaticly relabel the specified files to the proper permissions eliminating permission denied errors https://stackoverflow.com/questions/35218194/what-is-z-flag-in-docker-containers-volumes-from-option

linuxserver.io



Description:

Benefits of this PR and context:

this PR (should) simply add :Z to the readme.md in the setup guide causing docker to automaticly update file and folder permissions so that permission denied errors should no longer happen

How Has This Been Tested?

ive implimented the changes on my system

Source / References:

thespad commented 5 months ago

That's not what the z and Z flags do, they're for applying selinux labels that allow docker volumes to be accessed by multiple containers, or to restrict them to a single container, it doesn't touch the posix file permissions.

fennectech commented 5 months ago

it did also set permissions for me.