From 4622e64ba361d14403ab7e31eb250c9e4e13e602 Mon Sep 17 00:00:00 2001 From: Alex Couture-Beil Date: Tue, 30 Mar 2021 14:22:26 -0700 Subject: [PATCH] set --ssh default when omitted Signed-off-by: Alex Couture-Beil --- commands/build.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/build.go b/commands/build.go index d1d66308..f1917eb6 100644 --- a/commands/build.go +++ b/commands/build.go @@ -309,7 +309,7 @@ func buildCmd(dockerCli command.Cli, rootOpts *rootOptions) *cobra.Command { flags.StringArrayVar(&options.secrets, "secret", []string{}, "Secret file to expose to the build: id=mysecret,src=/local/secret") - flags.StringArrayVar(&options.ssh, "ssh", []string{}, "SSH agent socket or keys to expose to the build (format: default|[=|[,]])") + flags.StringArrayVar(&options.ssh, "ssh", []string{"default"}, "SSH agent socket or keys to expose to the build (format: default|[=|[,]])") flags.StringArrayVarP(&options.outputs, "output", "o", []string{}, "Output destination (format: type=local,dest=path)")