code: func NewStopCommand(dockerCli command.Cli) *cobra.Command {
  	var opts stopOptions
  
  	cmd := &cobra.Command{
  		Use:   "stop [OPTIONS] CONTAINER [CONTAINER...]",
  		Short: "Stop one or more running containers",
  		Args:  cli.RequiresMinArgs(1),
  		RunE: func(cmd *cobra.Command, args []string) error {
  			opts.containers = args
  			opts.timeChanged = cmd.Flags().Changed("time")
  			return runStop(dockerCli, &opts)
  		},
  	}
  
  	flags := cmd.Flags()
  	flags.IntVarP(&opts.time, "time", "t", 10, "Seconds to wait for stop before killing it")
  	return cmd
  }
docs: // NewStopCommand creates a new cobra.Command for `docker stop`