diff --git a/commands/bake.go b/commands/bake.go index 7a8767226c34..c5ab0bc79694 100644 --- a/commands/bake.go +++ b/commands/bake.go @@ -114,6 +114,7 @@ func bakeCmd(dockerCli command.Cli, rootOpts *rootOptions) *cobra.Command { if !cmd.Flags().Lookup("pull").Changed { options.pull = nil } + options.commonOptions.builder = rootOpts.builder return runBake(dockerCli, args, options) }, }