首页 > 系统服务 > 详细

Ubuntu docker安装

时间:2017-11-26 12:30:14      阅读:304      评论:0      收藏:0      [点我收藏+]
# 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 
# 安装指定版本的Docker-CE:
# Step 1: 查找Docker-CE的版本:
# apt-cache madison docker-ce
# docker-ce | 17.03.1~ce-0~ubuntu-xenial | http://mirrors.aliyun.com/docker-ce/linux/ubuntu  xenial/stable amd64 Packages
# docker-ce | 17.03.0~ce-0~ubuntu-xenial | http://mirrors.aliyun.com/docker-ce/linux/ubuntu  xenial/stable amd64 Packages
# Step 2: 安装指定版本的Docker-CE: (VERSION 例如上面的 17.03.1~ce-0~ubuntu-xenial)
# sudo apt-get -y install docker-ce=[VERSION]
18
1
# step 1: 安装必要的一些系统工具 
2
sudo apt-get update 
3
sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common 
4
# step 2: 安装GPG证书 
5
curl -fsSL http://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add -
6
# Step 3: 写入软件源信息 
7
sudo add-apt-repository "deb [arch=amd64] http://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable"
8
# Step 4: 更新并安装 Docker-CE 
9
sudo apt-get -y update 
10
sudo apt-get -y install docker-ce 
11
# 安装指定版本的Docker-CE:
12
# Step 1: 查找Docker-CE的版本:
13
# apt-cache madison docker-ce
14
# docker-ce | 17.03.1~ce-0~ubuntu-xenial | http://mirrors.aliyun.com/docker-ce/linux/ubuntu  xenial/stable amd64 Packages
15
# docker-ce | 17.03.0~ce-0~ubuntu-xenial | http://mirrors.aliyun.com/docker-ce/linux/ubuntu  xenial/stable amd64 Packages
16
# Step 2: 安装指定版本的Docker-CE: (VERSION 例如上面的 17.03.1~ce-0~ubuntu-xenial)
17
# sudo apt-get -y install docker-ce=[VERSION]

暂时还没有Ubuntu17的包,需从源文件安装

Ubuntu docker安装

原文:http://www.cnblogs.com/ercjul/p/7898501.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!