Tuesday, February 28, 2017

Docker : failed to get default registry endpoint from daemon, permission denied

If you are getting error while running docker commands by non root user like


Warning: failed to get default registry endpoint from daemon (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.26/info: dial unix /var/run/docker.sock: connect: permission denied). Using system default: https://index.docker.io/v1/
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.26/images/create?fromImage=alpine&tag=latest: dial unix /var/run/docker.sock: connect: permission denied


Add the non-root-user to group docker by updating /etc/group file or by running following command


usermod -aG docker non-root-user

1 comment:

  1. Very informative blog. Thanks for sharing. Keep updating. Please contact to the number 9505066323 for online training in Linux, Angular js, Pega, Dot net, Devops at ITEducationalexperts.
    Linux Online Training
    linux online course
    Linux Online Training in Hyderabad
    Linux Online Training in Bangalore
    Linux Online Training in Chennai

    ReplyDelete