如何正确使用centos dockerfile与ubuntu主机? [英] How to use properly centos dockerfile with ubuntu host?

查看:170
本文介绍了如何正确使用centos dockerfile与ubuntu主机?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如果使用centos镜像与ubuntu主机是危险的或愚蠢的。
我理解Docker的主要概念(lxc,aufs ...)但是如果我们启动一个centos容器是一个真正的centos?内核是这是从Ubuntu。如何处理?

I would like to know if it is dangerous or dumb to use a centos image with an ubuntu host. I understand the main concepts with Docker (lxc, aufs...) but if we start a centos container is it a real centos ? the kernel is this from ubuntu. How to deal with it ?

很抱歉,如果我的问题不好解释。

Sorry if my question is bad explained.

非常感谢。最好的问候
Nicolas

Thanks a lot. Best regards Nicolas

推荐答案

这将是一样的使用Centos与Ubuntu内核。大多数东西会工作,但你可能有一些副作用(例如,selinux可能停止工作,因为ubuntu支持appamor)。

It would be the same as to use Centos with a Ubuntu kernel. Most of things would work, but you could have some side effects(e.g. selinux may stop working because ubuntu supports appamor instead).

这篇关于如何正确使用centos dockerfile与ubuntu主机?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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