Docker.github.io: Fedora - Install from Repository incomplete

Created on 2 Jul 2019  路  2Comments  路  Source: docker/docker.github.io

File: install/linux/docker-ce/fedora.md

The steps to install docker from repository on fedora f28 seam to be incomplete I tried to help someone to install docker on her notebook, but she was using fedora and the official steps within the docs did not yield success.

systemd status docker.service saied running as did containerd.service

But when trying to docker run hello-world it throws:

Error response from daemon: OCI runtime create failed: container_linux.go:345: starting container process caused "process_linux.go:430: container init caused \"write /proc/self/attr/keycreate: permission denied\": unknown.

The user joined the docker group and also rebooted the system after installing docker.

Steps to reproduce on fedora 28:

dnf -y install dnf-plugins-core
dnf config-manager \
    --add-repo \
    https://download.docker.com/linux/fedora/docker-ce.repo
dnf install docker-ce docker-ce-cli containerd.io
systemctl start docker
systemctl enable docker
docker run hello-world

All 2 comments

Maybe this link can help you: https://stackoverflow.com/questions/56870478/cannot-start-docker-container-in-docker-ce-on-oracle-linux

I found it. after disable selinux the problem solved. selinux prevent docker to write on /proc/self/attr/keycreat
For disable selinux:
Edit the /etc/selinux/config file to set the SELINUX parameter to disabled, and then reboot the server

Also witnessing this on RHEL 7. I've been using SELinux successfully - currently 18.09.9-ce works but 19.03.6-ce fails with the error mentioned in the OP.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

thunder1902 picture thunder1902  路  3Comments

Bharathkumarraju picture Bharathkumarraju  路  3Comments

londoncalling picture londoncalling  路  5Comments

thaJeztah picture thaJeztah  路  4Comments

DanJ210 picture DanJ210  路  3Comments