Skip to content

Commit

Permalink
build: use legacy builder for wcow if not opt-in with a builder compo…
Browse files Browse the repository at this point in the history
…nent

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
  • Loading branch information
crazy-max committed Feb 22, 2022
1 parent fccb3a6 commit 7fd33b9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmd/docker/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ func processBuilder(dockerCli command.Cli, cmd *cobra.Command, args, osargs []st
return args, osargs, nil
}

// wcow build command must use the legacy builder
// if not opt-in through a builder component
if !useBuilder && dockerCli.ServerInfo().OSType == "windows" {
return args, osargs, nil
}

if useLegacy {
// display warning if not wcow and continue
if dockerCli.ServerInfo().OSType != "windows" {
Expand Down

0 comments on commit 7fd33b9

Please sign in to comment.