如何在 CentOS 6.5 中安装 docker 1.9+? [英] How to install docker 1.9+ in CentOS 6.5?

查看:34
本文介绍了如何在 CentOS 6.5 中安装 docker 1.9+?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在在 CentOS 6.5 上进行部署,我现在开始使用 docker.

I'm now deploying on CentOS 6.5, and I'm now starting to use docker.

所以,我按照以下说明操作:https://docs.docker.com/engine/安装/centos/

So, I follow the instructions on: https://docs.docker.com/engine/installation/centos/

无论我按照哪种方法安装,我都会得到1.7.1的版本.

No matter which method I follow to install, I get version of 1.7.1.

[root@VM_72_235_centos ~]# docker version
Client version: 1.7.1
Client API version: 1.19
Go version (client): go1.4.2
Git commit (client): 786b29d/1.7.1
OS/Arch (client): linux/amd64
Server version: 1.7.1
Server API version: 1.19
Go version (server): go1.4.2
Git commit (server): 786b29d/1.7.1
OS/Arch (server): linux/amd64

但现在我运行文档中的命令:

But now I run the command in the documentation:

docker network ls

失败 docker: 'network' is not a docker command..

而我终于知道网络动作最早是在1.9中引入的.

And I finally know that the network action is first introduced in 1.9.

那么有没有办法在centos6中安装docker 1.9呢?

So is there any way to install docker 1.9 in centos6 ?

推荐答案

CentOS 6 和 RHEL 6 不再支持,它们的最后一个 build 是 docker 1.7.1.

CentOS 6 and RHEL 6 are no longer supported, and the last build for them is docker 1.7.1.

文档的那个页面(https://docs.docker.com/engine/installation/centos/) 还提到;

That page of the documentation (https://docs.docker.com/engine/installation/centos/) also mentions;

Docker 在 CentOS 7.X 上运行无论您的 CentOS 版本如何,Docker 都需要 64 位安装.此外,您的内核必须至少为 CentOS 7 运行的 3.10.

Docker runs on CentOS 7.X Docker requires a 64-bit installation regardless of your CentOS version. Also, your kernel must be 3.10 at minimum, which CentOS 7 runs.

运行这些发行版 (2.6.x) 的内核已经超过 13 年了,尽管 Red Hat 向后移植了新功能,但它们缺少 Docker 所需的某些选项,并且已证明不稳定,不适合生产.

The kernel that those distro's are running on (2.6.x) is over 13 years old, and although newer features are back-ported to them by Red Hat, they lack certain options that are required by Docker, and have proven to be unstable, and unsuitable for production.

如果你想(继续)使用 Docker,我鼓励你升级升级到 CentOS 7.x.

I encourage you to upgrade upgrade to CentOS 7.x if you want to (keep) using Docker.

这篇关于如何在 CentOS 6.5 中安装 docker 1.9+?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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