Ubuntu 16.04安装docker
1. 清理环境
apt-get remove docker docker-engine docker.io
2. 安装应用软件
apt-get install \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
3. 添加Docker的官方GPG key
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
4. 建立稳定的库
add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
5. 更新
apt-get update
6. 安装docker
apt-get install docker-ce
7. 检查版本
docker verison