码头图像是否可跨越不同的linux口味? [英] Are docker images portable across different linux flavours?

查看:123
本文介绍了码头图像是否可跨越不同的linux口味?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

码头图像是否可跨越不同的linux风格进行移植?假设我有一个基于OEL的Docker映像,其中安装了数据库,我可以在Mac上的boot2docker中运行吗?

解决方案

是的,您可以存档图片( docker save / docker load ),将其复制到您的Mac上,除非您的图像在boot2docker Tiny Core VM中运行容器。



唯一的情况是如果其操作系统文件系统依赖于内核的某些补丁级别,则图像可能不可移植。

在这种情况下,该映像的容器只能在正确的内核上运行。



hek2mgl 提到在评论中,功能如 inotify 仅适用于Linux(应该适用于boot2docker的TinyCore VM ),但是当从(非Linux)中共享文件夹)主机票VBox 10660 或< a href =https://github.com/boot2docker/boot2docker/pull/284#issuecomment-50599511 =nofollow noreferrer> boot2docker PR 284 comment )。


Are docker images portable across different linux flavours? Let's say, if I have OEL based docker image with database installed in it, can I run this in boot2docker on a Mac?

解决方案

Yes, you can archive an image (docker save/docker load), copy it on your mac unless your image and run a container in a boot2docker Tiny Core VM.

The only case where an image might not be portable is if its OS filesystem depends on certain patch level of the kernel.
In that case, a container from that image would only run on the right kernel.

hek2mgl mentions in the comments that a feature like inotify works only on Linux (should work on the TinyCore VM of boot2docker), but would not work when sharing a folder from the (non-Linux) host (ticket VBox 10660 or boot2docker PR 284 comment).

这篇关于码头图像是否可跨越不同的linux口味?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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