Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wants to merge 1 commit into from

Conversation

fennectech
Copy link

@fennectech fennectech commented May 24, 2024

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


  • I have read the contributing guideline and understand that I have made the correct modifications

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:


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
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for opening this pull request! Be sure to follow the pull request template!

@thespad
Copy link
Member

thespad commented May 24, 2024

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
Copy link
Author

it did also set permissions for me.

@fennectech fennectech closed this May 24, 2024
@fennectech fennectech deleted the patch-1 branch May 25, 2024 02:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants