Farzad
Farzad

Reputation: 1939

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?

Upvotes: 2

Views: 2446

Answers (2)

laktak
laktak

Reputation: 60043

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/

Upvotes: 3

Farzad
Farzad

Reputation: 1939

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

Upvotes: 0

Related Questions