diff --git a/cli/command/image/save.go b/cli/command/image/save.go index 75e946c2d7..813052278c 100644 --- a/cli/command/image/save.go +++ b/cli/command/image/save.go @@ -29,7 +29,7 @@ func NewSaveCommand(dockerCli command.Cli) *cobra.Command { Args: cli.RequiresMinArgs(1), RunE: func(cmd *cobra.Command, args []string) error { opts.images = args - return RunSave(cmd.Context(), dockerCli, opts) + return runSave(cmd.Context(), dockerCli, opts) }, Annotations: map[string]string{ "aliases": "docker image save, docker save", @@ -47,8 +47,8 @@ func NewSaveCommand(dockerCli command.Cli) *cobra.Command { return cmd } -// RunSave performs a save against the engine based on the specified options -func RunSave(ctx context.Context, dockerCli command.Cli, opts saveOptions) error { +// runSave performs a save against the engine based on the specified options +func runSave(ctx context.Context, dockerCli command.Cli, opts saveOptions) error { if opts.output == "" && dockerCli.Out().IsTerminal() { return errors.New("cowardly refusing to save to a terminal. Use the -o flag or redirect") }