安装步骤:
下载docker-ce的repo
curl https://download.docker.com/linux/centos/docker-ce.repo -o /etc/yum.repos.d/docker-ce.repo
安装依赖(这是相比centos7的关键步骤)
yum install https://download.docker.com/linux/fedora/30/x86_64/stable/Packages/containerd.io-1.2.6-3.3.fc30.x86_64.rpm
- 安装docker-ce
4.启动dockeryum install docker-ce
systemctl start docker
- 开机启动docker
6.安装docker-composesystemctl enable docker
7.添加操作权限sudo curl -L "https://github.com/docker/compose/releases/download/1.25.5/docker-compose-(uname -m)" -o /usr/local/bin/docker-compose
8.设置快捷sudo chmod +x /usr/local/bin/docker-compose
9.查看docker-compose 版本sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
docker-compose --version