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