From 20b11792e8c58348d3f50756251c98f80e027a35 Mon Sep 17 00:00:00 2001 From: John Howard Date: Tue, 14 May 2019 15:48:17 -0700 Subject: [PATCH] LCOW: Fix FROM scratch Signed-off-by: John Howard --- daemon/images/image_builder.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/daemon/images/image_builder.go b/daemon/images/image_builder.go index cdf951c6f5..320ffcf4cb 100644 --- a/daemon/images/image_builder.go +++ b/daemon/images/image_builder.go @@ -170,6 +170,9 @@ func (i *ImageService) pullForBuilder(ctx context.Context, name string, authConf func (i *ImageService) GetImageAndReleasableLayer(ctx context.Context, refOrID string, opts backend.GetImageAndLayerOptions) (builder.Image, builder.ROLayer, error) { if refOrID == "" { // ie FROM scratch os := runtime.GOOS + if runtime.GOOS == "windows" { + os = "linux" + } if opts.Platform != nil { os = opts.Platform.OS }