一、Recommended extra packages
sudo apt-get update
sudo apt-get install curl linux-image-extra-$(uname -r) linux-image-extra-virtual
二、Install Docker
Set up the repository
sudo apt-get install apt-transport-https software-properties-common ca-certificates
sudo curl -fsSL https://yum.dockerproject.org/gpg | sudo apt-key add -
sudo apt-key fingerprint 58118E89F3A912897C070ADBF76221572C52609D
sudo apt-get install software-properties-common
sudo add-apt-repository "deb https://apt.dockerproject.org/repo/ ubuntu-$(lsb_release -cs) main"
Install Docker
sudo apt-get update
sudo apt-get -y install docker -engine
sudo apt-cache madison docker-engine
sudo docker run hello-world
Uninstall Docker
sudo apt-get purge docker-engine
sudo rm -rf /var/lib/docker
三、Docker-Compose
Install Docker-Compose
sudo apt-get update
sudo apt-get install python-pip
sudo pip uninstall docker-compose( 如果有老版的,先删除掉)
sudo pip install docker-compose
sudo docker-compose --vesion
Uninstall Docker-Compose
sudo pip uninstall docker-compose
四、文档
http://www.widuu.com/docker/installation/ubuntu.html