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

Commit df4aa49

Browse files
John HowardthaJeztah
authored andcommitted
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> Upstream-commit: ba28377919de499e50e1beacf200d4daccb3f6ae Component: engine
1 parent 78173b2 commit df4aa49

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)