centos7 docker installation

The docker image acceleration used here is https://dashboard.daocloud.io/ Please register yourself and log in to view https://www.daocloud.io/mirror
=========docker for linux=============
Check out the docker version http://rancher.com/docs/rancher/v1.6/en/hosts/#supported-docker-versions
change yum source
sudo tee /etc/yum.repos.d/docker.repo <<-'EOF'
[dockerrepo]
name=Docker Repository
baseurl = https: //yum.dockerproject.org/repo/main/centos/7/
enabled=1
gpgcheck=1
gpgkey=https://yum.dockerproject.org/gpg
EOF
 yum -y update
implement
curl https://releases.rancher.com/install-docker/17.06.sh | sh
 If there is no error above until the download is stuck due to resource speed problems
You can try the following methods.
First execute the image acceleration script obtained in daocloud,
then execute the script
yum -y docker-ce
 
Modify startup parameters
vim /etc/docker/daemon.json
{"registry-mirrors": ["Here fill in the personal address of mirror acceleration in daocloud"]
,"insecure-registries": ["192.168.101.150"]
,"hosts":["tcp://0.0.0.0:2375","unix:///var/run/docker.sock"]
}
 
reboot
sudo systemctl daemon-reload & sudo service docker restart
 
Install docker Rancher Server #docker monitoring center
sudo docker run -d --restart=unless-stopped -p 8080:8890 rancher/server:stable
 
Rancher access address http://192.168.101.150:8890/
Install docker private repository
Refer to my other article http://wu1g119.iteye.com/blog/2388255
 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326316820&siteId=291194637