Problem Scenario
You try to configure Docker such that you can run “docker” commands without sudo. You run these three commands:
sudo groupadd docker
sudo gpasswd -a $USER docker
newgrp docker
You then installed Docker and rebooted the server. You then run this:
docker run hello-world
But you received this:
/usr/bin/docker-current: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
…