Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Commit 8b00f36

Browse files
authored
Merge pull request #240 from thaJeztah/19.03_backport_lcowfromscratch
[19.03 backport] LCOW: Fix FROM scratch Upstream-commit: c030578fe4e2bd948577f19981364f18e2dbe8a1 Component: engine
2 parents 80cebcf + df4aa49 commit 8b00f36

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

components/engine/daemon/images/image_builder.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,9 @@ func (i *ImageService) pullForBuilder(ctx context.Context, name string, authConf
170170
func (i *ImageService) GetImageAndReleasableLayer(ctx context.Context, refOrID string, opts backend.GetImageAndLayerOptions) (builder.Image, builder.ROLayer, error) {
171171
if refOrID == "" { // ie FROM scratch
172172
os := runtime.GOOS
173+
if runtime.GOOS == "windows" {
174+
os = "linux"
175+
}
173176
if opts.Platform != nil {
174177
os = opts.Platform.OS
175178
}

0 commit comments

Comments
 (0)