2018-08-30 08:41:19 +00:00
|
|
|
% podman-attach(1)
|
2017-11-01 15:24:59 +00:00
|
|
|
|
|
|
|
## NAME
|
2018-04-26 13:21:11 +00:00
|
|
|
podman\-attach - Attach to a running container
|
2017-11-01 15:24:59 +00:00
|
|
|
|
2017-12-01 17:26:30 +00:00
|
|
|
## SYNOPSIS
|
2018-06-29 17:53:33 +00:00
|
|
|
**podman attach** [*options*] *container*
|
2017-12-01 17:26:30 +00:00
|
|
|
|
|
|
|
## 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. You configure the key sequence using the --detach-keys option
|
|
|
|
|
|
|
|
## OPTIONS
|
|
|
|
**--detach-keys**
|
2018-06-14 15:44:39 +00:00
|
|
|
|
2017-12-01 17:26:30 +00:00
|
|
|
Override the key sequence for detaching a container. Format is a single character [a-Z] or
|
2018-06-14 15:44:39 +00:00
|
|
|
ctrl-[value] where [value] is one of: a-z, @, ^, [, , or _.
|
2017-12-01 17:26:30 +00:00
|
|
|
|
2018-01-02 22:29:43 +00:00
|
|
|
**--latest, -l**
|
2018-06-14 15:44:39 +00:00
|
|
|
|
2018-01-02 22:29:43 +00:00
|
|
|
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.
|
|
|
|
|
2017-12-01 17:26:30 +00:00
|
|
|
**--no-stdin**
|
2018-06-14 15:44:39 +00:00
|
|
|
|
2017-12-01 17:26:30 +00:00
|
|
|
Do not attach STDIN. The default is false.
|
|
|
|
|
2018-03-04 17:24:56 +00:00
|
|
|
**--sig-proxy**=*true*|*false*
|
2018-06-14 15:44:39 +00:00
|
|
|
|
2018-03-04 17:24:56 +00:00
|
|
|
Proxy received signals to the process (non-TTY mode only). SIGCHLD, SIGSTOP, and SIGKILL are not proxied. The default is *true*.
|
|
|
|
|
2017-12-01 17:26:30 +00:00
|
|
|
## EXAMPLES ##
|
|
|
|
|
|
|
|
```
|
2018-08-30 11:05:37 +00:00
|
|
|
$ podman attach foobar
|
2017-12-01 17:26:30 +00:00
|
|
|
[root@localhost /]#
|
|
|
|
```
|
|
|
|
```
|
2018-08-30 11:05:37 +00:00
|
|
|
$ podman attach --latest
|
2018-01-02 22:29:43 +00:00
|
|
|
[root@localhost /]#
|
|
|
|
```
|
|
|
|
```
|
2018-08-30 11:05:37 +00:00
|
|
|
$ podman attach 1234
|
2017-12-01 17:26:30 +00:00
|
|
|
[root@localhost /]#
|
|
|
|
```
|
|
|
|
```
|
2018-08-30 11:05:37 +00:00
|
|
|
$ podman attach --no-stdin foobar
|
2017-12-01 17:26:30 +00:00
|
|
|
```
|
2017-11-01 15:24:59 +00:00
|
|
|
## SEE ALSO
|
2017-12-15 21:58:36 +00:00
|
|
|
podman(1), podman-exec(1), podman-run(1)
|