Good Day TLK Team,
This is the error message I am getting when I get to the Pulling phase.
alchemistclubstudios@alchemistclubstudios:~$ docker login nvcr.io
WARNING: Error loading config file: /home/alchemistclubstudios/.docker/config.json: stat /home/alchemistclubstudios/.docker/config.json: permission denied
Username: $oauthtoken
Password:
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.39/auth: dial unix /var/run/docker.sock: connect: permission denied
Hi johnnymystic19,
I think you may get the same error when you run below command
$ docker run helloworld
Please run below to fix your issue.
-
Firstly, check whether there is a user group for docker.
$ sudo cat /etc/group | grep docker
-
If not, then create the docker group.
$ sudo groupadd docker
-
Add your user to the docker group.
$ sudo usermod -aG docker $USER
-
double check
$ sudo cat /etc/group |grep docker
-
Restart docker
$ sudo systemctl restart docker
-
check below commands again.
$ docker run helloworld
$ docker login nvcr.io
Reference: Post-installation steps for Linux | Docker Documentation