centos: 安装 docker - centos
记录一下安装 docker
删除旧的
sudo yum remove docker \
docker-client \
docker-client-latest \
docker-common \
docker-latest \
docker-latest-logrotate \
docker-logrotate \
docker-engine
安装
# 1. setup
sudo yum install -y yum-utils
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
# 2. install engine
sudo yum install -y yum-utils
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
# 3. start
sudo systemctl start docker
安装 docker-compose
# 安装 python3
# 安装 docker-compose
pip3 install docker-compose
参考