Matazure
Matazure

Reputation: 43

Create docker base image for a linux iso image

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

Upvotes: 3

Views: 2016

Answers (1)

eckes
eckes

Reputation: 10423

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.

Upvotes: 1

Related Questions