Docker镜像是否跟操作系统相关的?还是跨平台的?

镜像是跟操作系统相关的吧? 比如我要下载一个nginx的镜像,如果我在mac docker下运行,就应该下一个mac docker下的nginx镜像; 如果在linux docker运行,就下一个linux docker 的nginx镜像 ? 还是镜像运行在docker引擎下,引擎已经跨平台了?...显示全部

镜像是跟操作系统相关的吧? 比如我要下载一个nginx的镜像,如果我在mac docker下运行,就应该下一个mac docker下的nginx镜像; 如果在linux docker运行,就下一个linux docker 的nginx镜像 ? 还是镜像运行在docker引擎下,引擎已经跨平台了?

收起
参与41
  • 所有的镜像都是运行在,docker 引擎之上,但是docker 又依赖于操作系统内核,所以docker 软件自身是分操作系统部署的,但是镜像不需要,windows中也可以通过wsl来运行Linux 相关程序
    2016-11-03

查看其它 4 个回答asdf-asdf的回答

asdf-asdfasdf-asdf研究学者cloudstone

docker 镜像是  平台相关的  linux 镜像 可以用在   linux 和windows下面的docker 上

而power系列  只能用在power系列上

软件开发 · 2016-11-04
浏览26779

回答者

asdf-asdf
研究学者cloudstone
擅长领域: 云计算服务器系统运维

asdf-asdf 最近回答过的问题

回答状态

  • 发布时间:2016-11-04
  • 关注会员:6 人
  • 回答浏览:26779
  • X社区推广