ubuntu14.04/16.04安装docker-ce-17.03.1

sudo apt-get update
sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL http://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] http://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get -y update
apt -y install docker-ce=17.03.1~ce-0~ubuntu-xenial
systemctl start docker

猜你喜欢

转载自blog.51cto.com/wangpengtai/2136142