这边记录ubuntu安装过程,首先是官网文档
If you haven’t already done so, log into your Ubuntu instance.
Open a terminal window.
-
Add the new
gpg
key.$ apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
-
Open the
/etc/apt/sources.list.d/docker.list
file in your favorite editor.If the file doesn’t exist, create it.
Remove any existing entries.
-
Add an entry for your Ubuntu operating system.
The possible entries are:
# Ubuntu Precise
deb https://apt.dockerproject.org/repo ubuntu-precise main
# Ubuntu Trusty
deb https://apt.dockerproject.org/repo ubuntu-trusty main
# Ubuntu Vivid
deb https://apt.dockerproject.org/repo ubuntu-vivid main
# Ubuntu Wily
deb https://apt.dockerproject.org/repo ubuntu-wily main Save and close the
/etc/apt/sources.list.d/docker.list
file.-
Update the
apt
package index.$ apt-get update
-
Purge the old repo if it exists.
$ apt-get purge lxc-docker*
-
Verify that
apt
is pulling from the right repository.$ apt-cache policy docker-engine
~# apt-cache policy docker-engine
docker-engine:
Installed: 1.8.-~precise
Candidate: 1.8.-~wily
Version table:
1.8.-~wily
https://apt.dockerproject.org/repo/ ubuntu-wily/main amd64 Packages
1.8.-~vivid
https://apt.dockerproject.org/repo/ ubuntu-vivid/main amd64 Packages
1.8.-~trusty
https://apt.dockerproject.org/repo/ ubuntu-trusty/main amd64 Packages
*** 1.8.-~precise
https://apt.dockerproject.org/repo/ ubuntu-precise/main amd64 Packages
/var/lib/dpkg/status
1.8.-~wily
https://apt.dockerproject.org/repo/ ubuntu-wily/main amd64 Packages
1.8.-~vivid
https://apt.dockerproject.org/repo/ ubuntu-vivid/main amd64 Packages
1.8.-~trusty
https://apt.dockerproject.org/repo/ ubuntu-trusty/main amd64 Packages
1.8.-~precise
https://apt.dockerproject.org/repo/ ubuntu-precise/main amd64 Packages
1.8.-~wily
https://apt.dockerproject.org/repo/ ubuntu-wily/main amd64 Packages
1.8.-~vivid
https://apt.dockerproject.org/repo/ ubuntu-vivid/main amd64 Packages
1.8.-~trusty
https://apt.dockerproject.org/repo/ ubuntu-trusty/main amd64 Packages
1.8.-~precise
https://apt.dockerproject.org/repo/ ubuntu-precise/main amd64 Packages
1.8.-~wily
https://apt.dockerproject.org/repo/ ubuntu-wily/main amd64 Packages
1.8.-~vivid
https://apt.dockerproject.org/repo/ ubuntu-vivid/main amd64 Packages
1.8.-~trusty
https://apt.dockerproject.org/repo/ ubuntu-trusty/main amd64 Packages
1.8.-~precise
https://apt.dockerproject.org/repo/ ubuntu-precise/main amd64 Packages
1.7.-~wily
https://apt.dockerproject.org/repo/ ubuntu-wily/main amd64 Packages
1.7.-~vivid
https://apt.dockerproject.org/repo/ ubuntu-vivid/main amd64 Packages
1.7.-~trusty
https://apt.dockerproject.org/repo/ ubuntu-trusty/main amd64 Packages
1.7.-~precise
https://apt.dockerproject.org/repo/ ubuntu-precise/main amd64 Packages
1.7.-~vivid
https://apt.dockerproject.org/repo/ ubuntu-vivid/main amd64 Packages
1.7.-~trusty
https://apt.dockerproject.org/repo/ ubuntu-trusty/main amd64 Packages
最后选定特定发行版的一个docker-engine版本进行安装即可
apt-get install -y docker-engine=1.8.-~precise
docker 1.8+之后ubuntu安装指定版本docker-engine的更多相关文章
-
yum 安装指定版本Docker
版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明.本文链接:https://blog.csdn.net/weixin_39553910/artic ...
-
Centos7根据yum源安装指定版本docker
yum install -y yum-utils device-mapper-persistent-data lvm2 yum-config-manager --add-repo https://mi ...
-
在Linux Centos 7.2 上安装指定版本Docker。
相关资料链接: https://docs.docker.com/install/linux/docker-ce/centos/#install-docker-ce 先清空下“历史” yum remov ...
-
在Linux Centos 7.2 上安装指定版本Docker 17.03
相关资料链接: https://docs.docker.com/install/linux/docker-ce/centos/#install-docker-ce 先清空下“历史” yum insta ...
-
运维笔记--ubuntu安装指定版本的RabbitMQ
场景描述: 日常开发or生产环境经常会需要安装指定版本的软件,出于和其他软件的配合兼容性,以及稳定性的考虑. 现在我们的需求是安装指定版本的RabbitMQ,版本号: 操作步骤: 注意事项: 异常处理 ...
-
Ubuntu安装指定版本的docker
系统环境: Ubuntu 16.0.4 安装版本: docker 17.03.2 在进现在这家公司初期,需要使用rancher部署一个k8s集群,由于rancher也是由docker启动的,加上k8 ...
-
centos虚拟机安装指定版本docker
环境: centos 7.6+ docker-ce 17.03.2 安装依赖包 yum -y install yum-utils device-mapper-persistent-data lvm2 ...
-
Ubuntu通过apt-get安装指定版本和查询软件源有多少个版本
一.通过apt-get安装指定版本 apt-get install <<package name>>=<<version>> 二.查询指定软件有多少个版 ...
-
安装指定版本的docker服务
参考博客:Docker CE 镜像源站 参考博客:docker启动异常driver not supported 1. 说明 之前部署docker服务的时候都是安装最新的docker版本,并使用dock ...
随机推荐
-
MySQL 创建表
MySQL中create table语句的基本语法是: CREATE [TEMPORARY] TABLE [IF NOT EXISTS] tbl_name [(create_definition,. ...
-
简单的圆形图标鼠标hover效果 | CSS3教程
演示 本教程将和大将分享一些简单的圆形图标在鼠标hover时的动画效果.这种效果在不少时尚的酷站上都有.本教程中的例子主要是利用在a元素的伪元素上使用CSS transitions和animation ...
-
Dubbo使用详解及环境搭建
一:Dubbo简介 Dubbo是阿里巴巴提供的开源的SOA(面向服务的体系结构)服务化治理的技术框架,据说只是一部分开源的,但一些基本的需求已经可以满足的,而且可扩展性.是一种能取代PHRPC的服务调 ...
-
HDU1073:Online Judge
Problem Description Ignatius is building an Online Judge, now he has worked out all the problems exc ...
-
安装nginx和php
安装nginx 1.安装依赖包 yum -y install gcc-c++ pcre pcre-devel zlib zlib-devel openssl openssl-devel perl pe ...
-
selenium之表格的定位
浏览器网页常常会包含各类表格,自动化测试工程师可能会经常操作表格中的行,列以及某些特定的单元格,因此熟练掌握表格的定位方法是自动化测试实施过程中必要的技能. 被测试网页的HTML代码 <!DOC ...
-
git教程: 查看文件状态与修改内容
转载:时光机穿梭 我们已经成功地添加并提交了一个readme.txt文件,现在,是时候继续工作了,于是,我们继续修改readme.txt文件,改成如下内容: Git is a distributed ...
-
HDU1542 扫描线(矩形面积并)
Atlantis Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Su ...
-
复习回顾(String,StringBuffer,Arrays方法总结)
String: String类的对象是一经创建就无法变动内容的字符串常量,创建String类的对象可以使用直接赋值和利用构造方法赋值 String str=“hello”; String str=n ...
-
jq给单选框 radio添加或删除选中状态
$("#div1 :radio").removeAttr("checked");//删除目标div下所有单选框的选中状态 $("#div1 :radi ...