-
Notifications
You must be signed in to change notification settings - Fork 14
Description
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.