(原)ubuntu14及ubuntu16中安装docker
转载请注明出处:
http://www.cnblogs.com/darkknightzh/p/5653739.html
参考网址:
http://blog.csdn.net/yangzhenping/article/details/43671843
https://docs.docker.com/engine/installation/linux/ubuntulinux/
http://blog.csdn.net/xundh/article/details/46441403
1. 由于老版本的docker支持的命令很少,因而需要卸载老版本的docker。
(http://blog.csdn.net/yangzhenping/article/details/43671843)
sudo docker -v
sudo apt-get remove docker
老版本的docker支持的命令:
2. 在ubuntu14上面重新安装新版本的docker
(http://blog.csdn.net/xundh/article/details/46441403)
直接使用如下命令即可
wget -qO- https://get.docker.com/ | sh
q后面是大写字母O
说明:有时候赋值上面这句话,就是提示有问题,去上面的网址复制,就可以执行。。。
3. 在ubuntu16上面重新安装新版本的docker
参考docker官方文档(https://docs.docker.com/engine/installation/linux/ubuntulinux/)
说明:a. 上面网址有16.04,15.10,14.04,12.04的安装步骤。接下来只说在ubuntu16上怎么安装。
b. ubuntu内核最低为3.10.使用如下命令查看内核版本:
uname -r
1)更新apt源:
① ensure that APT works with the https method, and that CA certificates are installed
终端中输入如下命令:
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates
② 增加新的GPG key
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
③ 打开/etc/apt/sources.list.d/docker.list文件,删除里面的所有内容(需要超级管理员权限);如果不存在,创建。
④ 在③中的文件中增加 entry,并保存该文件:
deb https://apt.dockerproject.org/repo ubuntu-xenial main
注意:其他版本中的请查看上面的网址。Docker does not provide packages for all architectures. You can find nightly built binaries in https://master.dockerproject.org. To install docker on a multi-architecture system, add an [arch=...] clause to the entry. Refer to the Debian Multiarch wiki for details.
说明:之前安装docker时,只能安装到1.10,后来打开该文件,发现源不对。更改了之后,后面安装的就是最新的了。
⑤ 更新apt
sudo apt-get update
⑥ 如果有的话,清除老的repo
sudo apt-get purge lxc-docker
⑦ Verify that APT is pulling from the right repository.
apt-cache policy docker-engine
2)安装docker
① 终端中输入:
sudo apt-get update
② 安装docker:
sudo apt-get install docker-engine
③ Start the docker daemon:
sudo service docker start
④ 验证docker成功安装:
sudo docker run hello-world
结果如下:

可选的配置:见参考网址。
4. 新版本的docker:

新版本docker支持的命令:


(原)ubuntu14及ubuntu16中安装docker的更多相关文章
- (原+转)ubuntu16中安装opencv2.4.11
转载请注明出处: http://www.cnblogs.com/darkknightzh/p/5638117.html 参考网址: http://www.cnblogs.com/jeakon/arch ...
- (原+转)ubuntu16中安装opencv2.4.11(2.4.13)
转载请注明出处: http://www.cnblogs.com/darkknightzh/p/5638117.html 参考网址: http://www.cnblogs.com/jeakon/arch ...
- ubuntu16.04安装docker CE
如需开始在 Ubuntu 上使用 Docker CE,请确保您满足先决条件,然后再安装 Docker. 如需安装 Docker 企业版 (Docker EE),请转至获取适用于 Ubuntu 的 Do ...
- Docker - 在CentOS 7中安装Docker
1-确认系统信息 # cat /etc/redhat-release CentOS Linux release 7.2.1511 (Core) # uname -a Linux CentOS-7 3. ...
- ubuntu中安装Docker
系统要求: 必须时64位的系统,内核最低要求是3.10 查看系统内核: $ uname -r 3.11.0-15-generic 获取最新版本打Docker: $ wget -qO- https:// ...
- 在deepin中安装docker
用往常方法安装 一般在Linux中安装docker的时候都会使用这条命令 wget -qO- https://get.docker.com/ | sh 而在deepin这么做缺不行 打开网址即可发现支 ...
- 在Ubuntu中安装Docker和docker的使用
1.在Ubuntu中安装Docker 更新ubuntu的apt源索引 sudo apt-get update 安装包允许apt通过HTTPS使用仓库 sudo apt-get install \ ap ...
- mac下idea中安装docker插件
idea中安装docker插件: 点击Intellij IDEA->Preferences...->Plugins->Browse repositories...如下: 点击Inst ...
- Ubuntu16.04安装Docker、nvidia-docker
Ubuntu16.04安装Docker.nvidia-docker Docker安装 1.更换国内软件源,推荐中国科技大学的源,稳定速度快(可选) sudo cp /etc/apt/sources.l ...
随机推荐
- C语言数组作为函数参数
数组可以作为函数的参数使用,进行数据传送. 数组用作函数参数有两种形式,一种是把数组元素(下标变量)作为实参使用:另一种是把数组名作为函数的形参和实参使用. 数组元素作函数实参 数组元素就是下标变量, ...
- Java中,&&与&;||与|的区别
我们很多人在学习Java的时候,或者其他语言(如:C#,.Net等)都会遇到&和&&,|和||.然而,如果你没有真正理解他们的意思,这回给你的思路上带来很大的麻烦.在Java的 ...
- 为什么要采用外部js文件
这篇文章主要讲的是为什么要采用外部js文件,有什么好处. 为什么不把js内嵌在html中呢,这样不是好分析吗?对,这样你是好分析,同样的别人呢?不内嵌在html中有如下原因: 安全性: 只要查看页 ...
- 函数:Python的乐高积木 - 零基础入门学习Python017
函数:Python的乐高积木 让编程改变世界 Change the world by program 相信大家小时候应该都玩过神奇的乐高积木,只要通过想象和创意,我们可以用它拼凑出很多神奇的东西. 随 ...
- C#代码计时
using System.Diagnostics; Stopwatch sw = new Stopwatch(); sw.Start(); //todo code ....... sw.Stop(); ...
- Bitly缩短网址服务 - Blog透视镜
网站的网址过长或是含有非英文或数字符号,会导致在BBS或者微网志中分享给好友时,产生很多的不方便,Bitly是个缩短网址服务的网站,提供1个短网址转向指定到长网址,免费使用且提供统计报表,例如本篇文章 ...
- 10个经典的Android开源项目(附源码包)
最近在抽空学习Android系统开发,对Android学习也比较感兴趣,刚开始学就试着在网上找几个项目源码研究看下,以下就将找到的Android项目源码列出,希望对正在或准备学习Android系统开发 ...
- LeetCode_Insert Interval
Given a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessa ...
- 转:代码的坏味道之二十 :Data Class(纯稚的数据类)或POJO
所谓Data Class是指:它们拥有一些值域(fields),以及用于访问(读写]这些值域的函数,除此之外一无长物.这样的classes只是一种「不会说话的数据容器」,它们几乎一定被其他classe ...
- Longest Palindromic Substring 解答
Question Given a string S, find the longest palindromic substring in S. You may assume that the maxi ...