بسم الله

Bismillah

Setelah install docker, setting user dan group-nya, tiba saatnya buat nge-test docker, walhasil permission denied ketik mau konek ke socket daemon-nya. Setelah cari-cari info, cuma butuh rubah permission file socket-nya saja.

Error Message

Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/images/search?limit=25&term=centos": dial unix /var/run/docker.sock: connect: permission denied

Pastikan grup baru bernama sudah di dibuat dan user kita sudah masuk ke dalam grup.

Create the docker group.

sudo groupadd docker

Add your user to the docker group.

sudo usermod -aG docker ${USER}

Logout and login back

su -s ${USER}

Verify that you can run docker commands without sudo

docker run hello-world

الحمد لله

Linked Refrences: