Skip to content

swarmpit installer SELinux fail on Fedora Server 32 #10

@drwonky

Description

@drwonky

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions