Docker Community Forums

Share and learn in the Docker community.

Cli-plugins: permission denied

I have Docker version 19.03.2, build 6a30dfc installed.
When calling “docker” as root, I get the error:
open /usr/libexec/docker/cli-plugins: permission denied

in /var/log/kern.log I see:
Sep 25 21:24:46 Home kernel: [ 3351.169703] audit: type=1400 audit(1569439486.903:133): apparmor=“DENIED” operation=“open” profile="/usr/bin/docker" name="/etc/nsswitch.conf" pid=12199 comm=“docker” requested_mask=“r” denied_mask=“r” fsuid=0 ouid=0
Sep 25 21:24:46 Home kernel: [ 3351.169879] audit: type=1400 audit(1569439486.903:134): apparmor=“DENIED” operation=“open” profile="/usr/bin/docker" name="/etc/nsswitch.conf" pid=12199 comm=“docker” requested_mask=“r” denied_mask=“r” fsuid=0 ouid=0
Sep 25 21:24:46 Home kernel: [ 3351.170203] audit: type=1400 audit(1569439486.903:135): apparmor=“DENIED” operation=“open” profile="/usr/bin/docker" name="/etc/passwd" pid=12199 comm=“docker” requested_mask=“r” denied_mask=“r” fsuid=0 ouid=0
Sep 25 21:24:46 Home kernel: [ 3351.170206] audit: type=1400 audit(1569439486.903:136): apparmor=“DENIED” operation=“open” profile="/usr/bin/docker" name="/etc/passwd" pid=12199 comm=“docker” requested_mask=“r” denied_mask=“r” fsuid=0 ouid=0
Sep 25 21:24:46 Home kernel: [ 3351.188190] audit: type=1400 audit(1569439486.923:137): apparmor=“DENIED” operation=“open” profile="/usr/bin/docker" name="/usr/libexec/docker/cli-plugins/" pid=12199 comm=“docker” requested_mask=“r” denied_mask=“r” fsuid=0 ouid=0

Reinstalling docker didn’t solve this.
Any ideas?

aa-complain /usr/bin/docker

solved the problem.