Create docker base image for a linux iso image

心已入冬 提交于 2019-12-10 11:15:34

问题


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


回答1:


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.

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

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.



来源:https://stackoverflow.com/questions/25214715/create-docker-base-image-for-a-linux-iso-image

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