Shortcut for most recent container

It is desirable to have a shortcut for the most
recently created container.  We can now use "**latest"
to represent the most recent container instead of its
container ID or name.  For example:

Signed-off-by: baude <bbaude@redhat.com>

Closes: #179
Approved by: baude
This commit is contained in:
baude
2018-01-02 16:29:43 -06:00
committed by Atomic Bot
parent 6baf6e461d
commit 7b08aa78e4
27 changed files with 257 additions and 48 deletions

View File

@ -21,6 +21,10 @@ Return data on items of the specified type. Type can be 'container', 'image' or
Format the output using the given Go template
**--latest, -l**
Instead of providing the container name or ID, use the last created container. If you use methods other than Podman
to run containers such as CRI-O, the last started container could be from either of those methods.
**--size**
Display the total file size if the type is a container