1, Add Docker source
1,ADD Docker source:
$ sudo apt-get update
2,Add CA certificates:
$ sudo apt-get install apt-transport-https ca-certificates
3,Add GPG Key:
$ sudo apt-key adv --keyserver hkp://p8.pool.sks-keyservers.net: --recv-keys E
4,Create docker.list file:
$ sudo vim /etc/apt/sources.list.d/docker.list
# add ubuntu16.04LST entrance
deb https://apt.dockerproject.org/repo ubuntu-xenial main
5,Update source again:
$ sudo apt-get update
6,Clear out-of-date source:
$ sudo apt-get purge lxc-docker
7,Verify APT download application from correct source:
$ apt-cache policy docker-engine
Then configure Docker source successfully
![](https://img.laitimes.com/img/9ZDMuAjOiMmIsIjOiQnIsIiclRnblN0LclHdpZXYyd2LcBzNvwVZ2x2bzNXak9CX90TQNNkRrFlQKBTSvwFbslmZvwFMwQzLcVmepNHdu9mZvwFVywUNMZTY18CX052bm9CXykEVOFDcXR2bOJjYox2RlZXUYpVd1kmYr50MZV3YyI2cKJDT29GRjBjUIF2LcRHelR3LcJzLctmch1mclRXY39TO0YjM0ETN4ADOxETM3EDMy8CX0Vmbu4GZzNmLn9Gbi1yZtl2Lc9CX6MHc0RHaiojIsJye.jpg)
2, Install aufs driver : linux-image-extra
1,Update source:
$ sudo apt-get update
2,Install linux-image-extra:
$ sudo apt-get install linux-image-extra-$(uname -r)
3, Install Docker
1,Update source:
$ sudo apt-get update
2,Install Docker:
$ sudo apt-get install docker-engine
3,Start Docker:
$ sudo service docker start
4,Test if install successfully(use sample:hello world)