Manuals-> Docker Engine -> install -> Server -> centos
- 卸载旧版本
sudo yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest \ docker-latest-logrotate \ docker-logrotate \ docker-engine
- 设置存储库 :安装软件包(提供实用程序)并设置存储库。yum-utilsyum-config-manager
sudo yum install -y yum-utils sudo yum-config-manager \ --add-repo \ https://download.docker.com/linux/centos/docker-ce.repo
- 我选择的是安装最新版本的 Docker Engine、containerd 和 Docker Compose
sudo yum install docker-ce docker-ce-cli containerd.io docker-compose-plugin
- 启动 Docker
sudo systemctl start docker
docker 配置aliyun镜像加速器