This is why running Docker commands generally needs sudo or root privileges. The solution to deal with Docker safely and securely as a non-root user is to add your user into the docker group. cgroups, Selinux or Apparmor, regular unix permissions, Linux namespaces and Linux Capabilities all perform jointly to https://bibisoutherncontainers.com/