Create docker base image for a linux iso image

2019-05-22 23:16发布

问题:

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.



标签: docker coreos