Browse code

LCOW: Fix FROM scratch

Signed-off-by: John Howard <jhoward@microsoft.com>
(cherry picked from commit 20b11792e8c58348d3f50756251c98f80e027a35)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

John Howard authored on 2019/05/15 07:48:17
Showing 1 changed files
... ...
@@ -170,6 +170,9 @@ func (i *ImageService) pullForBuilder(ctx context.Context, name string, authConf
170 170
 func (i *ImageService) GetImageAndReleasableLayer(ctx context.Context, refOrID string, opts backend.GetImageAndLayerOptions) (builder.Image, builder.ROLayer, error) {
171 171
 	if refOrID == "" { // ie FROM scratch
172 172
 		os := runtime.GOOS
173
+		if runtime.GOOS == "windows" {
174
+			os = "linux"
175
+		}
173 176
 		if opts.Platform != nil {
174 177
 			os = opts.Platform.OS
175 178
 		}