如何在CentOS 7上安装最新版本的Docker [英] How to install the latest version of Docker on CentOS 7

查看:1200
本文介绍了如何在CentOS 7上安装最新版本的Docker的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在CentOS 7 64位系统上安装一个现代的docker.io版本1.5+。

I am trying to have a modern docker.io version 1.5+ installed on a CentOS 7 64bit system.

yum服务器附带的默认docker.io是1.3.2,
这个版本对于我需要的一些docker.io功能来说太旧了,例如

The default docker.io that comes with the yum servers is 1.3.2, and this version is too old for some of the docker.io features I need, e.g.

在centos 7上安装本地码头注册表

系统详细信息:

docker --version
Docker version 1.3.2, build 39fa2fa/1.3.2

系统:

cat /etc/centos-release
CentOS Linux release 7.0.1406 (Core)

uname -a
Linux hostname 3.10.0-123.20.1.el7.x86_64 #1 SMP Thu Jan 29 18:05:33 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

任何想法如何安装现代docker.io 1.5 +?

Any ideas how to install a modern docker.io 1.5+?

推荐答案

这是我所做的:


  1. 使用此命令向yum添加repo

sudo vi /etc/yum.repos.d/cbs.repo

,并含有以下内容:

[virt7-testing]
name=virt7-testing
baseurl=http://cbs.centos.org/repos/virt7-testing/x86_64/os/
enabled=1
gpgcheck=0




  1. 使用应用程序启动yum - >系统工具 - >软件

搜索 Docker

请注意,docker 1.5.x可用于安装。

Note that docker 1.5.x is available for install.

如果安装了Docker 1.3.2,请将其卸载单击应用。

If Docker 1.3.2 is installed, uninstall it by unchecking it and clicking apply.

单击Docker 1.5.x旁边的复选框,然后单击应用。

Click the check box next to Docker 1.5.x and click apply.

这篇关于如何在CentOS 7上安装最新版本的Docker的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆