Category: Docker

Docker Got permission denied while trying to connect to the Docker daemon socket at unix

docker permission denied

docker: 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.35/containers/create: dial unix /var/run/docker.sock: connect: permission denied. See ‘docker run –help’.   To fix this issue, we have to create a group, assign the user to the group and then give the permissions to /var/run/docker.sock   Add docker group […]

Docker image-is-being-used-by-stopped-container

docker permission denied

Sometimes we are unable to delete the docker images and error says that Error response from daemon: conflict: unable to delete 1b79f8f1fcc8 (must be forced) – image is being used by stopped container e688f67acedd It means that there are stopped containers and causing the lock so first up all delete the stopped containers and then […]

Got permission denied while trying to connect to the Docker daemon socket

docker permission denied

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.40/images/json: dial unix /var/run/docker.sock: connect: permission denied. docker images The above command giving error like permission denied so we need to update the permission to 666 as per the following.   Solution: Update the permission by executing the following command […]