code: func NewTagCommand(dockerCli command.Cli) *cobra.Command {
  	var opts tagOptions
  
  	cmd := &cobra.Command{
  		Use:   "tag SOURCE_IMAGE[:TAG] TARGET_IMAGE[:TAG]",
  		Short: "Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE",
  		Args:  cli.ExactArgs(2),
  		RunE: func(cmd *cobra.Command, args []string) error {
  			opts.image = args[0]
  			opts.name = args[1]
  			return runTag(dockerCli, opts)
  		},
  	}
  
  	flags := cmd.Flags()
  	flags.SetInterspersed(false)
  
  	return cmd
  }
docs: // NewTagCommand creates a new `docker tag` command