centos7安装docker

 

安装依赖包

yum install -y yum-utils device-mapper-persistent-data lvm2

添加Docker软件包源

yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo

更新yum包索引(这步可以没有)

yum makecache fast

安装Docker CE

yum install docker-ce 

启动docker

systemctl start docker
systemctl stop docker
systemctl enbale docker

 

卸载docker

 

systemctl stop docker
systemctl disable docker
yum remove docker-ce
rm -rf /var/lib/docker

官 方 安 装 文 档 : https://docs.docker.com/engine/installation/linux/docker- ce/centos/#docker-ee-customers

 

 

 

 

 

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐