1. sudo apt-get update
2. sudo apt-get install -y curl linux-image-extra-$(uname -r) linux-image-extra-virtual
3. sudo apt-get install -y apt-transport-https ca-certificates
4. curl -s http://yum.dockerproject.org/gpg | sudo apt-key
5. sudo add-apt-repository "deb https://apt.dockerproject.org/repo/pool/ $(lsb_release -cs) main"
6. sudo apt-get update
7. sudo apt-get -y install docker-engine
8. 验证docker 是否安装成功
sudo docker --version
原文地址:http://blog.51cto.com/13766835/2337200
时间: 2024-11-05 01:06:42