Search code examples
dockerlinux-kernelarchlinuxmanjaroapparmor

Docker stopped working with error message OCI runtime create failed


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?


Solution

  • 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/