diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-10-31 19:39:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-31 19:39:44 +0100 |
commit | ffe36ea9964242235571ad1d21a0c4d825ef5971 (patch) | |
tree | b38d2d9c492ab2b2ad951135fde7e90c37344711 /docs/source/markdown/podman-attach.1.md | |
parent | 3e2d9f8662663f2f703bf674408d5255e493e18e (diff) | |
parent | 486fcd4e1e6f00424f1016d8e331582523bd2c68 (diff) | |
download | podman-ffe36ea9964242235571ad1d21a0c4d825ef5971.tar.gz podman-ffe36ea9964242235571ad1d21a0c4d825ef5971.tar.bz2 podman-ffe36ea9964242235571ad1d21a0c4d825ef5971.zip |
Merge pull request #4354 from baude/newdocsstruct
Restructure documentation dir
Diffstat (limited to 'docs/source/markdown/podman-attach.1.md')
-rw-r--r-- | docs/source/markdown/podman-attach.1.md | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/docs/source/markdown/podman-attach.1.md b/docs/source/markdown/podman-attach.1.md new file mode 100644 index 000000000..cef01f0f6 --- /dev/null +++ b/docs/source/markdown/podman-attach.1.md @@ -0,0 +1,60 @@ +% podman-attach(1) + +## NAME +podman\-attach - Attach to a running container + +## SYNOPSIS +**podman attach** [*options*] *container* + +**podman container attach** [*options*] *container* + +## DESCRIPTION +The attach command allows you to attach to a running container using the container's ID +or name, either to view its ongoing output or to control it interactively. + +You can detach from the container (and leave it running) using a configurable key sequence. The default +sequence is `ctrl-p,ctrl-q`. +Configure the keys sequence using the **--detach-keys** option, or specifying +it in the **libpod.conf** file: see **libpod.conf(5)** for more information. + +## OPTIONS +**--detach-keys**=*sequence* + +Override the key sequence for detaching a container. Format is a single character `[a-Z]` or +a comma separated sequence of `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. + +The latest option is not supported on the remote client. + +**--no-stdin** + +Do not attach STDIN. The default is false. + +**--sig-proxy**=*true*|*false* + +Proxy received signals to the process (non-TTY mode only). SIGCHLD, SIGSTOP, and SIGKILL are not proxied. The default is *true*. + +## EXAMPLES + +``` +$ podman attach foobar +[root@localhost /]# +``` +``` +$ podman attach --latest +[root@localhost /]# +``` +``` +$ podman attach 1234 +[root@localhost /]# +``` +``` +$ podman attach --no-stdin foobar +``` +## SEE ALSO +podman(1), podman-exec(1), podman-run(1) |