Run Docker Without sudo in Ubuntu 22.04 Jammy

bukanspot

Indra Wahyu

Posted on March 14, 2024

Run Docker Without sudo in Ubuntu 22.04 Jammy

My problem is, when run docker has a problem like this:

permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.44/containers/json": dial unix /var/run/docker.sock: connect: permission denied
Enter fullscreen mode Exit fullscreen mode

I solve with this

sudo addgroup --system docker
sudo adduser $USER docker
newgrp docker
Enter fullscreen mode Exit fullscreen mode

Reference

💖 💪 🙅 🚩
bukanspot
Indra Wahyu

Posted on March 14, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related