安装步骤参考下面:
https://www.runoob.com/docker/ubuntu-docker-install.html
报错:
”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.26/images/json: dial unix /var/run/docker.sock: connect: permission denied“
解决方法:
sudo groupadd docker #添加docker用户组
sudo gpasswd -a $XXX docker #检测是否在docker用户组中,XXX为用户名
sudo gpasswd -a $USER docker #将当前用户添加至docker用户组
newgrp docker #更新docker用户组
详细见下:
https://blog.csdn.net/liangllhahaha/article/details/92077065