Ubuntu software Source configuration file is/etc/apt/sources.list
Change the domestic, otherwise will be crazy. Here is the drop of Tsinghua University:
# Default Annotated source image to improve apt update speed, if necessary, can self-uncomment deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/xenial main restricted universe multiverse# DEB-SRC https://mirrors.tuna.tsinghua.edu.cn/ubuntu/xenial main restricted universe multiverseDeb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/xenial-updates main restricted universe multiverse# DEB-SRC https://mirrors.tuna.tsinghua.edu.cn/ubuntu/xenial-updates main restricted universe multiverseDeb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/xenial-backports main restricted universe multiverse# DEB-SRC https://mirrors.tuna.tsinghua.edu.cn/ubuntu/xenial-backports main restricted universe multiverseDeb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/xenial-security main restricted universe multiverse# DEB-SRC https://mirrors.tuna.tsinghua.edu.cn/ubuntu/xenial-security main restricted universe multiverse
Then reboot the server.
$ sudo apt-Getupdate$ sudo apt-GetInstall apt-transport-HTTPS CA-Certificates Curl Software-properties-common$ Curl-fssl https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add-$ sudo apt-key fingerprint 0ebfcd88$ sudo add-apt-Repository"Deb [arch=amd64] https://download.docker.com/linux/ubuntu \$ (Lsb_release-CS) Stable"$ sudo apt-Getupdate$ sudo apt-GetInstall Docker-ce
Then configure a Docker accelerator
Curl-ssl https://http://xxxxxxxxx.m.daocloud.io
Then follow the prompts to restart the Docker service and enter Docker info to see what's going on with Docker ~
Ubuntu 16.04 Running Docker