Home > OS >  The snap after unloading docker, download website version cannot directly use docker command
The snap after unloading docker, download website version cannot directly use docker command

Time:10-18

Connorzhy @ connorzhy - TM1701: ~ $docker
Bash:/snap/bin/docker: no the file or directory
Connorzhy @ connorzhy - TM1701: ~ $/usr/bin/docker version
Client:
Version: 18.09.5
API version: 1.39
Go version: go1.10.8
Git commit: e8ff056
2019 was Built: Thu Apr 11 04:43:57
OS/Arch: Linux/amd64
Experimental: false
Got the permission denied while trying to connect to the daemon socket Docker at Unix:///var/run/Docker. The sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.39/version: dial Unix/var/run/Docker. The sock: connect: permission denied

CodePudding user response:

2 cases
1, before you not uninstall clean lead to shell commands in
2, now you install the new docker no docker soft connection point to your shell command

Specific directory in/usr/local/bin/
Can only once again the docker soft links ln -s docker XXXX your directory
  • Related