ubuntu16.10 Install docker17.03.0 ES2en and configure domestic source and accelerator
- 2020-06-03 09:06:46
- OfStack
Note: this is for ES1en-ES2en installations. The difference between ce and ee is that the former is the community version and the latter is the enterprise version
1. Configure the source of Ubuntu, or cry slowly. Reference https: / / mirrors. tuna. tsinghua. edu. cn/help/ubuntu/note version to correspond. My source configuration attachment http: / / xiazai ofstack. com / 201705 / yuanma sources_jb51 rar.
2. Install docker, according to the official tutorial https: / / docs docker. com/engine/installation/linux/ubuntu /
Environment depends on
$ sudo apt-get update
$ sudo apt-get install \
linux-image-extra-$(uname -r) \
linux-image-extra-virtual
Install docker package
$ sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
Add docker official GPG secret key
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
Install the stable version warehouse
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
Update source again
sudo apt-get update
Install docker - ce
sudo apt-get install docker-ce
3. Add docker domestic accelerator (reference https: / / github com/yeasy/docker_practice/blob master/install/mirror md)
In ali cloud to apply for a account, open the connection https: / / cr console. aliyun. com exclusive accelerator / # / accelerator copy your address, and then/etc systemd system/multi - user. target. wants/docker service file, find ExecStart = this 1 line, finally add in this line accelerator address - registry - mirror = < Accelerator address >
Such as: ExecStart = / usr/bin/dockerd - registry - mirror = https: / / jxus37ad mirror. aliyuncs. com
Note: Replace dockerd with docker daemon for previous versions of 1.12
Reload the configuration and restart it
$ sudo systemctl daemon-reload
$ sudo systemctl restart docker
Now that the docker installation and domestic accelerators are ready, start your docker journey.
hello-word
$ sudo docker run hello-world