can't pull docker
Solution 1:
It says you don't have permission to connect to the socket unix:///var/run/docker.sock
Simply, to provide permission you can do:
sudo chown $USER /var/run/docker.sock
Then continue with your other docker commands like docker pull hello-world
If you want don't want to type sudo
before every docker command, you might want to add the currently logged-in user to the docker group:
sudo usermod -aG docker ${USER}
Then you will need to log out and log in back to apply the new group membership.Now you should be able to run docker commands without sudo as well.
Hope that helps.