Docker 最低内核版本 3.8.13 或 3.10 [英] Docker minimum kernel version 3.8.13 or 3.10

查看:33
本文介绍了Docker 最低内核版本 3.8.13 或 3.10的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Docker 网站上,我看到的信息接近冲突.

On the Docker website I am seeing information that is close to being in conflict.

页面:https://docs.docker.com/installation/oracle/说Docker 需要在 Oracle Linux 上使用 Unbreakable Enterprise Kernel Release 3 (3.8.13) 或更高版本."

The page: https://docs.docker.com/installation/oracle/ Says "Docker requires the use of the Unbreakable Enterprise Kernel Release 3 (3.8.13) or higher on Oracle Linux."

页面:https://docs.docker.com/installation/binaries/说需要 3.10.

The page: https://docs.docker.com/installation/binaries/ Says 3.10 is required.

我猜这些东西被添加到 3.8.13 的特殊版本中,否则需要 3.10 版本.

I'm guessing that stuff got added into a special build of 3.8.13 which would otherwise require version 3.10.

如果有人能给出一些说明那就太好了.

If anybody could give some clarification that would be great.

推荐答案

正确;在一般中,内核 3.10 是绝对最低内核版本,它支持 Docker 稳定运行所需的功能(但最好使用较新的版本).

Correct; in general, kernel 3.10 is the absolute minimum kernel version that supports the features that Docker requires to run stable (newer versions are preferred though).

但是,一些 Linux 发行版的向后移植功能到旧内核,以便它们仍然能够运行 Docker.例如,红帽企业 Linux 6.5 能够在内核 2.6(不过,它仍然是一个 12 岁的内核......)

However, some Linux distro's back-port features to older kernels so that they are still able to run Docker. Red Hat Enterprise Linux 6.5, for example, is able to run Docker on a kernel 2.6 (it's still a 12 year old kernel, though....)

总结;

  • 始终运行您的发行版提供的最新内核版本
  • 用自定义内核替换您的发行版提供的内核可能可行,但不受官方支持.
  • 一些(云)提供商用定制版本替换内核;这是导致一些问题的原因.
  • 如果您要构建自己的内核,请使用最新版本(docker 确实利用了最新版本中的某些功能)
  • Always run the most up-to-date kernel version provided by your distribution
  • Replacing the kernel that's provided by your distribution with a custom kernel might work, but is not officially supported.
  • Some (cloud) providers replace the kernel with a customised version; this has been the cause of some issues.
  • If you're building your own kernel, use a recent version (docker does take advantage of some features in recent versions)

还有一个 shell 脚本来检查您的系统是否具有所需的依赖项并检查哪些功能可用;

There's also a shell-script to check if your system has the required dependencies in place and to check which features are available;

https://github.com/docker/docker/blob/master/contrib/check-config.sh

更新

从 Docker 1.8.0 开始,Red Hat Enterprise Linux 6 和 CentOS 6(和 Kernel 2.6)不再支持运行 Docker 的平台,并且没有为这些发行版发布新的软件包.强烈建议不要在这些平台上运行 Docker,因为为 RHEL 6/CentOS 6 发布的最新版本是 Docker 1.7.1.建议将您的系统升级到 RHEL 7/CentOS 7,该版本受到积极支持.

Starting with Docker 1.8.0, Red Hat Enterprise Linux 6, and CentOS 6 (and Kernel 2.6) are no longer supported platforms for running Docker, and no new packages are released for those distributions. Running Docker on those platforms is highly discouraged, as the latest version released for RHEL 6 / CentOS 6 is Docker 1.7.1. It's recommended to upgrade your system to RHEL 7 / CentOS 7, which is actively supported.

这篇关于Docker 最低内核版本 3.8.13 或 3.10的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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