Skip to content

Docker command without sudoΒΆ

The problem with Docker is that whenever you add the docker group to the user, it basically becomes a [[root user]]. And when that is done, several applications might not work saying that it is unsafe to run them as root.

We can use [[ACLs]] to fix this.

sudo setfacl -m davis:rwx /var/run/docker.sock

Note that this should be used only in [[local setup]]s, not in [[production]].

Reference to AskUbuntu