docker

2022-02-06  本文已影响0人  camy

Ubuntu docker azure

1 Try to stop docker but got error on Ubuntu,
docker rm $(docker ps -aq)

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.24/containers/json?all=1": dial unix /var/run/docker.sock: connect: permission denied ```

solution:
just open terminal and type this command
sudo chmod 666 /var/run/docker.sock

2 Azure上的vm,把pem从一台电脑拷贝的另一台电脑就连不上(ssh -i timeout)了。

上一篇下一篇

猜你喜欢

热点阅读