Docker stopped working with error message OCI runtime create failed

2.2k Views Asked by At

I'm using Manjaro Linux and Kernerl 5.10.13.

I'm not sure what happened, maybe something was updated, but Docker stopped working for me.

When I try to do docker run hello-world, I see the following message:

docker: Error response from daemon: OCI runtime create failed: container_linux.go:367:
starting container process caused: process_linux.go:495: container init caused: apply apparmor
profile: apparmor failed to apply profile: write /proc/self/attr/exec: invalid argument: unknown.

ERRO[0000] error waiting for container: context canceled

If I switch to kernel 5.9.16, it seems to be fine. Am I missing something here?

2

There are 2 best solutions below

1
On BEST ANSWER

You may need to enable apparmor in your kernel parameters (apparmor=1 lsm=lockdown,yama,apparmor,bpf)

See https://www.reddit.com/r/archlinux/comments/ldhx0v/cant_start_docker_containers_on_latest_kernel/

0
On

I'm not sure what happened there, but the next morning (around 7 hours after I posted this), there was an update on my system, which seems to have resolved the issue