码头图像是否可跨越不同的linux口味? [英] Are docker images portable across different linux flavours?
问题描述
是的,您可以存档图片( 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屋!