Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot start docker container In docker CE on oracle linux

Tags:

docker

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

like image 840
Mohammad Ravanbakhsh Avatar asked Jul 03 '19 12:07

Mohammad Ravanbakhsh


People also ask

Why is my Docker not starting?

Go to performance and then CPU to verify whether Virtualization is enabled or not. If virtualization is disabled Docker Desktop cannot start. If the virtualization is disabled in your machine then you need to enable it from BIOS Settings.

Is Docker CE supported on RHEL?

Unlike CentOS, you can not install Docker CE on RHEL 7/8 using the official installation script because it isn't allowed. You'll get the following error when you try that: RHEL is only allowed to use Docker EE.

Does Oracle Linux support Docker?

Oracle support for Docker is limited to customers with either Basic or Premier Oracle Linux Support Subscriptions. Oracle only provides Docker server binary packages for Oracle Linux 6 and Oracle Linux 7 (x86_64).


1 Answers

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
like image 109
mkst Avatar answered Sep 18 '22 08:09

mkst