docker图像是否可以跨不同的Linux风格移植?

时间:2015-05-01 18:13:03

标签: linux docker portability

Docker镜像是否可以跨不同的Linux版本移植?比方说,如果我在其中安装了带有数据库的基于OEL的docker镜像,我可以在Mac上的boot2docker中运行吗?

1 个答案:

答案 0 :(得分:3)

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

图像可能无法移植的唯一情况是其OS文件系统是否依赖于内核的某些补丁级别 在这种情况下,该图像中的容器只能在正确的内核上运行。

hek2mgl提到in the comments inotify 等功能仅适用于Linux(should work on the TinyCore VM of boot2docker),但在{{3}时无效(sharing a folder from the (non-Linux) hostticket VBox 10660)。

相关问题