yum -y update
yum remove docker  docker-common docker-selinux docker-engine
yum install -y yum-utils device-mapper-persistent-data lvm2
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
yum install -y docker-ce docker-ce-cli containerd.io

一键安装
curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun

 

参考:

https://cloud.tencent.com/developer/article/1701451

 

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/auth": dial unix /var/run/docker.sock: connect: permission denied

 

chmod 666 /var/run/docker.sock

 

 
 
 
 
 
 
 
posted on 2023-08-23 14:32  小油2018  阅读(4)  评论(0编辑  收藏  举报