Centos7 安装Docker
lz1998 2020-11-17 linuxcentosdocker
# Uninstall old versions
$ sudo yum remove docker \
docker-client \
docker-client-latest \
docker-common \
docker-latest \
docker-latest-logrotate \
docker-logrotate \
docker-engine
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
# SET UP THE REPOSITORY
$ sudo yum install -y yum-utils
$ sudo yum-config-manager \
--add-repo \
https://download.docker.com/linux/centos/docker-ce.repo
1
2
3
4
5
2
3
4
5
# INSTALL DOCKER ENGINE
$ sudo yum install docker-ce docker-ce-cli containerd.io
1
# Start Docker.
$ sudo systemctl start docker
1
参考:https://docs.docker.com/engine/install/centos/