转载请注明出处:

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的更多相关文章

  1. (原+转)ubuntu16中安装opencv2.4.11

    转载请注明出处: http://www.cnblogs.com/darkknightzh/p/5638117.html 参考网址: http://www.cnblogs.com/jeakon/arch ...

  2. (原+转)ubuntu16中安装opencv2.4.11(2.4.13)

    转载请注明出处: http://www.cnblogs.com/darkknightzh/p/5638117.html 参考网址: http://www.cnblogs.com/jeakon/arch ...

  3. ubuntu16.04安装docker CE

    如需开始在 Ubuntu 上使用 Docker CE,请确保您满足先决条件,然后再安装 Docker. 如需安装 Docker 企业版 (Docker EE),请转至获取适用于 Ubuntu 的 Do ...

  4. Docker - 在CentOS 7中安装Docker

    1-确认系统信息 # cat /etc/redhat-release CentOS Linux release 7.2.1511 (Core) # uname -a Linux CentOS-7 3. ...

  5. ubuntu中安装Docker

    系统要求: 必须时64位的系统,内核最低要求是3.10 查看系统内核: $ uname -r 3.11.0-15-generic 获取最新版本打Docker: $ wget -qO- https:// ...

  6. 在deepin中安装docker

    用往常方法安装 一般在Linux中安装docker的时候都会使用这条命令 wget -qO- https://get.docker.com/ | sh 而在deepin这么做缺不行 打开网址即可发现支 ...

  7. 在Ubuntu中安装Docker和docker的使用

    1.在Ubuntu中安装Docker 更新ubuntu的apt源索引 sudo apt-get update 安装包允许apt通过HTTPS使用仓库 sudo apt-get install \ ap ...

  8. mac下idea中安装docker插件

    idea中安装docker插件: 点击Intellij IDEA->Preferences...->Plugins->Browse repositories...如下: 点击Inst ...

  9. Ubuntu16.04安装Docker、nvidia-docker

    Ubuntu16.04安装Docker.nvidia-docker Docker安装 1.更换国内软件源,推荐中国科技大学的源,稳定速度快(可选) sudo cp /etc/apt/sources.l ...

随机推荐

  1. MooTools 异步请求验证

    http://www.chinamootools.com/ 问题 MooTools 异步请求例子 <{foreach from=array('0','1','2','3','4') item=c ...

  2. URL传值中文乱码

    url含有中文 先encodeURI(url)编码 获取之后再解码decodeURI //加密 var param = "itname=" + slRows.ITNAME + &q ...

  3. 树状数组(BIT)

    i的二进制的最后一个1可以通过i&(-i)得到,时间复杂度o(logn).对于W*H的二维BIT只需要建立H个大小为x轴方向元素个数W的BIT,复杂度O(logW+logH).同样的方法可以扩 ...

  4. ORA-19573: cannot obtain exclusive enqueue for datafile 1

    还原Oracle数据库时出现ORA-19870和ORA-19573错误,如: RMAN> restore database; Starting restore at 11-DEC-12 usin ...

  5. LeetCode_Surrounded Regions

    Given a 2D board containing 'X' and 'O', capture all regions surrounded by 'X'. A region is captured ...

  6. Keil C51必须注意的一些有趣特性

    Keil c51号称作为51系列单片机最好的开发环境,大家一定都很熟悉.它的一些普通的特性大家也都了解,(书上也都说有)如:因为51内的RAM很小,C51的函数并不通过堆栈传递参数(重入函数除外),局 ...

  7. keil 中用函数指针调用函数的参数限制

    NSIC中,通过函数指针调用的函数的参数的个数没有限制,但是KeilC对此有限制,至多3个参数.因为,KeilC编译时,无法通过函数指针找到该函数的局部数据段,也就无法通过局部数据段传递参数,只能通过 ...

  8. PowerShell_零基础自学课程_6_PS中获取帮助信息详解、管道、格式化输

    前些文章陆续的说了一些关于这些主题,但是讨论的都不够深入,今天我们深入的了解一下获取帮助信息.管道以及格式化输出的内容. 一.获取帮助信息 在PS中获取帮助信息,最常用的有: -? .get-comm ...

  9. safari浏览器cookie问题

        这个题目可能有点大了,这里主要讨论一种解决safari浏览器阻止第三方cookie问题.       场景       公司存在多个域名(a.com,b.com,co.com)这些域名应该统一 ...

  10. java链接sqlite资料整理

    0.SQLite三种JDBC驱动的区别 摘自http://blog.sina.com.cn/s/blog_654337ca01016x4n.html 在DBeaver中看到SQLite有三种JDBC驱 ...