Linux中docker安装命令

//安装依赖
yum -y install yum-utils device-mapper-persistent-data lvm2
//配置仓库镜像
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
//安装docker
yum -y install docker-ce
//启动docker
systemctl start docker
//docker自启动
systemctl enable docker

猜你喜欢

转载自blog.csdn.net/DeweyLau/article/details/107480065