Recently I installed Docker CE on my Oracle Linux.
Unfortunately, when I want to start my first container with:
docker run hello-world
I get this error message:
docker: 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. ERRO[0000] error waiting for container: context canceled
Per the bug that david-maze linked to, updating container-selinux
should fix this for you:
sudo yum install http://mirror.centos.org/centos/7/extras/x86_64/Packages/container-selinux-2.107-1.el7_6.noarch.rpm
Just adding: Even though the package comes from centOS, you can manually install (yum install http://...) it without risk. But: Do not add a centOS repo to /etc/yum.repos.d/ because this will cause issues.
I think this one is accepted answer instead of disable selinux completely.
Working like a charm... Thanks a lot buddy