参考网址

https://docs.docker.com/engine/installation/linux/ubuntulinux/


apt-get upgrade

apt-get install apt-transport-https ca-certificates

apt-key adv  --keyserver-options http-proxy="http://代理IP:代理端口" --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D


vim /etc/apt/sources.list.d/docker.list

deb https://apt.dockerproject.org/repo ubuntu-xenial main

  • On Ubuntu Precise 12.04 (LTS)

deb https://apt.dockerproject.org/repo ubuntu-precise main

  • On Ubuntu Trusty 14.04 (LTS)

deb https://apt.dockerproject.org/repo ubuntu-trusty main

  • Ubuntu Wily 15.10

deb https://apt.dockerproject.org/repo ubuntu-wily main

  • Ubuntu Xenial 16.04 (LTS)

deb https://apt.dockerproject.org/repo ubuntu-xenial main


apt-get update

apt-get purge lxc-docker

apt-cache policy docker-engine

apt-get install linux-p_w_picpath-extra-$(uname -r)

apt-get install docker-engine