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

swarmpit installer SELinux fail on Fedora Server 32 #10

Open
drwonky opened this issue May 31, 2020 · 0 comments
Open

swarmpit installer SELinux fail on Fedora Server 32 #10

drwonky opened this issue May 31, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@drwonky
Copy link

drwonky commented May 31, 2020

When doing the copy and paste install on Fedora Server 32 I get a failure due to SELinux.

I execute this command as root user:

docker run -it --rm
--name swarmpit-installer
--volume /var/run/docker.sock:/var/run/docker.sock
swarmpit/install:1.9

I get this error:

Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.40/images/create?fromImage=lucashalbert%2Fcurl&tag=7.67.0-r0: dial unix /var/run/docker.sock: connect: permission denied
PREPARATION FAILED!

Note, this is NOT a host user permissions error, the issue is that the container cannot connect to the docker daemon through the volume bind mount.

Workaround:

setenforce 0

The problem seems to be an SELinux based issue, however I do not see any SELinux polices in the docker or moby RPMs, so the policies are managed somewhere else.

@nohaapav nohaapav added the bug Something isn't working label Sep 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants