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

查看:233
本文介绍了如何在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 /installation/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,它们的最后一个构建是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位安装.另外,您的内核必须至少为3.10,才能运行CentOS 7.

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天全站免登陆