First, make sure the network is unblocked:
I am using a virtual machine: Vmware®workstation pro+cent OS7 64-bit
Open command Execution page after login:
Start executing the following command
1. Uninstalling the old version of Docker and its associated dependencies
sudo yum remove docker docker-common container-selinux docker-selinux docker-engine
? 2. Install Yum-utils, which provides yum-config-manager that can be used to manage Yum sources
-y yum-utils
? 3. Add Yum source
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
添加下载影象。
? 4. Updating the index
sudo yum makecache fast
? 5. Installing Docker-ce
sudo yum install docker-ce
等待下载安装,可能存在多次下载
成功后提示!
? 6. Start Docker
sudo systemctl start docker
? 7. Verify that the installation is successful
sudo docker info
参考http://blog.csdn.net/xixiworld/article/details/71438794
Docker. NET Core path Cent OS 7 installed on Cent OS 7 docker