1. Demand
- Recently the need to use more docker, then installation use, first set up a test environment with a docker, I have to say, docker really fragrant. Compare Duo Qiqi strange encounter problems during the online tutorial will be more chaotic, then record it.
2. Install docker
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
echo 'deb https://apt.dockerproject.org/repo debian-stretch main' > /etc/apt/sources.list.d/docker.list
apt-get install apt-transport-https ca-certificates
apt-get update && sudo apt-get install docker-engine
systemctl start docker
3. accelerate image download with Ali cloud
- Register Login Ali cloud images speed up page: https://cr.console.aliyun.com/#/accelerator, after the accelerator to get their address
Modify the configuration file /etc/docker/daemon.json
{
"Registry-Mirrors": [ " HTTPS: // ×××××× .mirror.aliyuncs.com"]
}- 重启daemon:systemctl daemon-reload
Restart docker service: systemctl restart docker