阿里云 ubuntu 14.04 模板上安装 docker

ubuntu 14.04 的内核是 3.13 ,所以内核不用升级。

安装过程例如以下:

# apt-get update
# apt-get install apt-transport-https
# apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
# bash -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list"
# apt-get update
# apt-get install lxc-docker
# docker --bip 192.168.100.1/24 -d &

启动的时候也会遇到无法分配空暇 IP 的提示,使用docker --bip 192.168.100.1/24 -d & 启动就可以。

`

原文地址:https://www.cnblogs.com/yutingliuyl/p/6807474.html