Przeglądaj źródła

23837 Added long flag to docker ps for checking latest n containers. Updated to "--last"

Signed-off-by: Shoubhik Bose <sbose78@gmail.com>
Shoubhik Bose 9 lat temu
rodzic
commit
256edc24fc
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      api/client/container/ps.go

+ 1 - 1
api/client/container/ps.go

@@ -55,7 +55,7 @@ func NewPsCommand(dockerCli *client.DockerCli) *cobra.Command {
 	flags.BoolVarP(&opts.all, "all", "a", false, "Show all containers (default shows just running)")
 	flags.BoolVar(&opts.noTrunc, "no-trunc", false, "Don't truncate output")
 	flags.BoolVarP(&opts.nLatest, "latest", "l", false, "Show the latest created container (includes all states)")
-	flags.IntVarP(&opts.last, "", "n", -1, "Show n last created containers (includes all states)")
+	flags.IntVarP(&opts.last, "last", "n", -1, "Show n last created containers (includes all states)")
 	flags.StringVarP(&opts.format, "format", "", "", "Pretty-print containers using a Go template")
 	flags.StringSliceVarP(&opts.filter, "filter", "f", []string{}, "Filter output based on conditions provided")