赞
踩
注:安装过程使用root用户,非root用户可在命令前加sudo提升到root权限
- yum remove docker \
- docker-client \
- docker-client-latest \
- docker-common \
- docker-latest \
- docker-latest-logrotate \
- docker-logrotate \
- docker-selinux \
- docker-engine-selinux \
- docker-engine
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
yum update
yum install -y yum-utils device-mapper-persistent-data lvm2
yum list docker-ce --showduplicates | sort -r
yum install docker-ce #安装最新稳定版,如需安装指定版本可指定具体版本号,如:yum install docker-ce-17.12.0.ce
docker --version
- 启动docker
- systemctl start docker
-
- 停止docker
- systemctl stop docker
-
- 查看启动结果
- systemctl status docker
-
- 设置开机启动
- systemctl enable docker
参考链接:
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。