Docker-ce installation and configuration
1. Download docker-ce
Yum-y install wget
Cd / etc/yum.repos.d
Wget http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
Yum makecache fast
2. Install docker Community version
Yum-y install docker-ce
Mkdir-p / app/docker
Mkdir-p / etc/docker
3. Configure the accelerator
Vi / etc/docker/daemon.json
{"registry-mirrors": ["https://a14c78qe.mirror.aliyuncs.com"],"
"live-restore": false
"insecure-registries": [
"reg.pinming.org"
]
}
4. Modify docker startup service
Mkdir-p / etc/systemd/system/docker.service.d/
Vi / etc/systemd/system/docker.service.d/override.conf
[Service]
ExecStart=
ExecStart=/usr/bin/dockerd-- graph=/app/docker-H 0.0.0.0pur2375-H unix:///var/run/docker.sock $DOCKER_NETWORK_OPTIONS
5. Start docker
Systemctl daemon-reload
Systemctl enable docker
Systemctl start docker
Systemctl status docker