标签:chmod yun ogr show download strong config Docker CE shell
sudo yum remove docker \
docker-client \
docker-client-latest \
docker-common \
docker-latest \
docker-latest-logrotate \
docker-logrotate \
docker-selinux \
docker-engine-selinux \
docker-engine
## 安装基础依赖包
sudo yum install -y yum-utils device-mapper-persistent-data lvm2
## 官方给出的源,国内比较慢,不建议
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
## 可以用阿里源替代
sudo yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
## 如果想安装指定版本的docker-ce,可以先用命令查看版本号
sudo yum list docker-ce --showduplicates | sort -r
## 直接运行会默认安装最新版
sudo yum install docker-ce
## 安装指定版本,例如:yum install docker-ce-18.06.3.ce
sudo yum install docker-ce-<VERSION STRING>
curl -L https://github.com/docker/compose/releases/download/1.23.2/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose chmod +x /usr/local/bin/docker-compose
上面安装的是稳定版本1.23.2的 docker-compose,可以到github**上找最新版 https://github.com/docker/compose/releases
sudo yum remove docker-ce sudo rm -rf /var/lib/docker
sudo rm /usr/local/bin/docker-compose
docker docker-compose 安装(linux)
标签:chmod yun ogr show download strong config Docker CE shell
原文地址:https://www.cnblogs.com/senkorl/p/13196270.html