Ubuntu
#查看用户组 group #将当前普通用户加入docker用户组,执行命令: sudo usermod -aG docker {用户账号} #如果提示 Using default tag: latest 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.24/images/create?fromImage=mysql&tag=latest": dial unix /var/run/docker.sock: connect: permission denied #修改/run/docker.sock权限 sudo chmod a+rw /var/run/docker.sock #最后 systemctl restart docker
Centos
标签:run,Centos,sock,Ubuntu,var,docker From: https://www.cnblogs.com/qiuqiuqiuqiuqiu/p/17311108.html