Skip to content
This repository has been archived by the owner on Jul 28, 2024. It is now read-only.

Set the "z" option for Docker volumes #1371

Merged
merged 1 commit into from
Feb 1, 2019

Conversation

candrews
Copy link
Contributor

@candrews candrews commented Feb 1, 2019

z sets the SELinux labels so the docker containers can access those filesystem directories

On non-SELinux systems, the option does nothing.

Resolves:
The npm and docker-compose command documented in the README Dev-Setup currently don't work on SELinux systems (such as Fedora, which I'm using) because the docker containers cannot access the files in the volumes they're configured to mount. This PR fixes that.

See https://docs.docker.com/storage/bind-mounts/ for relevant documentation.

z sets the SELinux labels so the docker containers can access those filesystem directories

On non-SELinux systems, the option does nothing.
@borekb
Copy link
Member

borekb commented Feb 1, 2019

Thanks, I had no idea about the z option!

@borekb borekb added this to the 4.0 milestone Feb 1, 2019
@borekb borekb merged commit 2c60a9d into versionpress:master Feb 1, 2019
@borekb borekb changed the title Set the "z" option for docker volumes Set the "z" option for Docker volumes Apr 14, 2019
@borekb borekb added the scope: dev-infrastructure Build scripts, IDE settings, CI, Docker dev stack, testing, tooling, etc. label Apr 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
scope: dev-infrastructure Build scripts, IDE settings, CI, Docker dev stack, testing, tooling, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants