linux安装docker
程序员文章站
2022-06-06 08:36:31
...
yum update
#添加yum仓库
[dockerrepo]
name=Docker Repository
baseurl=https://yum.dockerproject.org/repo/main/centos/$releasever
enabled=1
gpgcheck=1
gpgkey=https://yum.dockerproject.org/gpg
#安装docker
yum install -y docker-engine
systemctl start docker.service
sudo systemctl enable docker