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

SELinux permission denied on docker run #3

Open
screeley44 opened this issue Jun 12, 2018 · 0 comments
Open

SELinux permission denied on docker run #3

screeley44 opened this issue Jun 12, 2018 · 0 comments

Comments

@screeley44
Copy link

docker run --rm \
	-e "CGO_ENABLED=0" \
	-e "GOCACHE=off" \
	-u $(id -u):$(id -g) \
	-v $(pwd):/go/src/github.com/gluster/anthill \
	-w /go/src/github.com/gluster/anthill \
	golang:1.10-alpine \
	go build -installsuffix "anthill" -o _output/bin/anthill ./cmd/anthill
can't load package: package github.com/gluster/anthill/cmd/anthill: open /go/src/github.com/gluster/anthill/cmd/anthill: permission denied
make: *** [build] Error 1

need to add the :Z flag to the -v <volume path>:Z

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

Successfully merging a pull request may close this issue.

1 participant