安装之前确认已经使用国内镜像,否则会很慢
参考:http://www.cnblogs.com/windchen/p/6228009.html
更新软件包和安装依赖
sudo apt-get update sudo apt-get install apt-transport-https ca-certificates
添加GPG Key
sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 \ --recv-keys
写入Docker Package地址
echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" | sudo tee /etc/apt/sources.list.d/docker.list
更新软件包索引
sudo apt-get update
安装推荐image
sudo apt-get install linux-image-extra-$(uname -r) linux-image-extra-virtual
安装Docker Engine
sudo apt-get install docker-engine
检查安装情况
sudo docker info
英文请参照:
https://docs.docker.com/engine/installation/linux/ubuntulinux/
时间: 2024-12-20 19:47:39