为linux iso映像创建docker基础映像 [英] Create docker base image for a linux iso image

查看:163
本文介绍了为linux iso映像创建docker基础映像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从coreos iso映像制作码头基础图像?
我尝试tar -cf iso映像到tar文件,但它失败了。
docker import ...只为.tar档案文件?
谢谢

How can i make a docker base image from a coreos iso image? i tried tar -cf the iso image to tar file, but it's failed. docker import ... just for .tar archive file? thanks

推荐答案

从完整的操作系统映像(即使是小型操作系统)到码头图像。实际上,CoreOS更适合运行码头而不是停泊码头图像的设备。

It is untypical to go from a full OS image (even when it is a small OS) to a docker image. Actually CoreOS is more intended to run docker instead of beeing the appliance of a docker image.

您要使用什么基本图像,为什么?你可能不需要任何的,如果你打包你的应用程序与一些依赖(并运行在Docker安装在coreOS)。

What base image you want to use and why? You might not need any if you pack your app with some dependencies (and run it on a Docker install in coreOS).

我想你将能够提取ISO (一些封隔器可以做到这一点),并删除停放站不需要的零件(像内核),但正如我所说你应该避免它。

I guess you would be able to extrace the ISO (some packers can do that) and remove the parts docker does not need (like the kernel), but as I said you should avoid it.

这篇关于为linux iso映像创建docker基础映像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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