summaryrefslogtreecommitdiff
path: root/docs/podman-attach.1.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/podman-attach.1.md')
-rw-r--r--docs/podman-attach.1.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/podman-attach.1.md b/docs/podman-attach.1.md
index 4d8b803c8..64163b340 100644
--- a/docs/podman-attach.1.md
+++ b/docs/podman-attach.1.md
@@ -20,6 +20,10 @@ sequence is CTRL-p CTRL-q. You configure the key sequence using the --detach-key
Override the key sequence for detaching a container. Format is a single character [a-Z] or
ctrl-<value> where <value> is one of: a-z, @, ^, [, , or _.
+**--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.
+
**--no-stdin**
Do not attach STDIN. The default is false.
@@ -30,6 +34,10 @@ podman attach foobar
[root@localhost /]#
```
```
+podman attach --latest
+[root@localhost /]#
+```
+```
podman attach 1234
[root@localhost /]#
```