基于Ubuntu的Docker映像可以在Redhat中运行吗? [英] Can a docker image based on Ubuntu run in Redhat?

查看:462
本文介绍了基于Ubuntu的Docker映像可以在Redhat中运行吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

阅读一些PPT,似乎一个容器可以在不同的linux供应商上运行。是真的吗?

Read some PPTs, it seems that one container can run on different linux vendors. Is is true?

推荐答案

是的,对于大多数应用程序来说,这是可行的。内核是您正在运行的(RedHat在您的示例中),而用户空间由容器(Ubuntu)提供。

Yes, for most applications this works. The kernel is whatever you are really running on (RedHat in your example) while the userspace is supplied by the container (Ubuntu).

大多数Linux内核变体都非常相似,应用程序将不会注意到。但是,如果代码依赖于内核中不存在的特定内容,Docker无法帮助您。

Most Linux kernel variants are sufficiently similar that applications will not notice. However if the code relies on something specific in the kernel that is not there, Docker can't help you.

Docker本身在编写时依赖于某些最低内核功能,3.8版本。 https://docs.docker.com/engine/installation/binaries/

Docker itself relies on certain minimum kernel features, version 3.8 at the time of writing. https://docs.docker.com/engine/installation/binaries/

这篇关于基于Ubuntu的Docker映像可以在Redhat中运行吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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