Skip to content

Commit

Permalink
23837 Added long flag to docker ps for checking latest n containers. …
Browse files Browse the repository at this point in the history
…Updated to "--last"

Signed-off-by: Shoubhik Bose <sbose78@gmail.com>
  • Loading branch information
sbose78 committed Jul 2, 2016
1 parent 3b6bd66 commit 256edc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/client/container/ps.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit 256edc2

Please sign in to comment.