diff --git a/cli/command/image/push.go b/cli/command/image/push.go index dd1c32ba72..cdef02ca10 100644 --- a/cli/command/image/push.go +++ b/cli/command/image/push.go @@ -45,7 +45,7 @@ func NewPushCommand(dockerCli command.Cli) *cobra.Command { Args: cli.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { opts.remote = args[0] - return RunPush(cmd.Context(), dockerCli, opts) + return runPush(cmd.Context(), dockerCli, opts) }, Annotations: map[string]string{ "category-top": "6", @@ -73,8 +73,8 @@ Image index won't be pushed, meaning that other manifests, including attestation return cmd } -// RunPush performs a push against the engine based on the specified options -func RunPush(ctx context.Context, dockerCli command.Cli, opts pushOptions) error { +// runPush performs a push against the engine based on the specified options. +func runPush(ctx context.Context, dockerCli command.Cli, opts pushOptions) error { var platform *ocispec.Platform out := tui.NewOutput(dockerCli.Out()) if opts.platform != "" {