Allow no kernel to be specified

This is needed for non LinuxKit use cases.

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
Justin Cormack 2017-05-09 13:03:58 +01:00
parent a1b24b4de2
commit e25033f70d

View File

@ -136,6 +136,7 @@ func buildInternal(m *Moby, name string, pull bool) []byte {
log.Fatalf("Could not pull image %s: %v", m.Kernel.Image, err)
}
}
if m.Kernel.Image != "" {
// get kernel and initrd tarball from container
log.Infof("Extract kernel image: %s", m.Kernel.Image)
const (
@ -155,6 +156,7 @@ func buildInternal(m *Moby, name string, pull bool) []byte {
}
initrdAppend(iw, kernel)
initrdAppend(iw, ktar)
}
// convert init images to tarballs
log.Infof("Add init containers:")