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)了。
-
应该是vm上ubuntu默认的防火墙把端口关了,去zaure上,找到[Run command]-【RunShellScript],执行命令【sudo ufw allow 22]
-
3
网友评论