Are docker images portable across different linux flavours?

落爺英雄遲暮 提交于 2019-12-21 19:22:19

问题


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?


回答1:


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).



来源:https://stackoverflow.com/questions/29992540/are-docker-images-portable-across-different-linux-flavours

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!