Skip to content
Matthew Marchese edited this page Jun 20, 2023 · 3 revisions

Cannot run docker build as a regular user

While running docker build it complains about lack of permission.

$ docker build -t gentoo .

2014/07/08 03:58:56 Post http:///var/run/docker.sock/build?rm=1&t=gentoo: dial unix /var/run/docker.sock: permission denied

Solution:

Add the user running the docker command to the docker group (command: usermod -a -G docker <user>).

Clone this wiki locally