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

Update README to include SELinux info for RHEL/CentOS 7 #22

Open
yesrod opened this issue Mar 21, 2017 · 0 comments
Open

Update README to include SELinux info for RHEL/CentOS 7 #22

yesrod opened this issue Mar 21, 2017 · 0 comments

Comments

@yesrod
Copy link

yesrod commented Mar 21, 2017

Had to do a bit of digging to figure out why I couldn't get my volume mapping to work under CentOS 7 (I'm new to Docker).

On RHEL7/CentOS 7, if SELinux is enabled, you need to include the ':z' or ':Z' suffix to the volume mapping parameter to tell Docker to apply SELinux labels. The ':z' suffix labels the mounted volume with a shared label that other containers can use; the ':Z' suffix labels the mounted volume with a private label only that container can use.

I ended up finding the info I needed from the docker-run man page, but it might help others if this info is available on the README as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant