---------------------------------------------------------------
Ubuntu 14.04 16.04 (使用apt-get进行安装)
---------------------------------------------------------------
before:首先确保自己的linux内核是3.10以上的版本
查看内核版本:uname -a
step 1: 安装必要的一些系统工具
sudo apt-get update
sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common
step 2: 安装GPG证书
curl -fsSL http://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add -
Step 3: 写入软件源信息
sudo add-apt-repository "deb [arch=amd64] http://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable"
Step 4: 更新并安装 Docker-CE
sudo apt-get -y update
sudo apt-get -y install docker-ce
Step 5: 安装之后启动docker
systemctl start docker
Step 6: 设置开机就启动docker
systemctl enable docker
Step 7: 查看docker是否安装成功
docker version
注意这里只显示了Client的信息,下面有一个报错: persis