diff --git a/cmd/docker/builder.go b/cmd/docker/builder.go index 03d6055b8e57..ce2c975ded7d 100644 --- a/cmd/docker/builder.go +++ b/cmd/docker/builder.go @@ -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" {