笔记Centos7安装docker卸载旧版本docker1 2 3 4 5 6 7 8 yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest \ docker-latest-logrotate \ docker-logrotate \ docker-engine 安装依赖1 yum install -y yum-utils 配置yum docker源1 2 3 yum-config-manager \ --add-repo \ https://download.docker.com/linux/centos/docker-ce.repo 安装docker1 yum install docker-ce docker-ce-cli containerd.io 启动docker1 systemctl start docker