1podman-attach(1)()                                          podman-attach(1)()
2
3
4

NAME

6       podman-attach - Attach to a running container
7
8

SYNOPSIS

10       podman attach [options] container
11
12
13       podman container attach [options] container
14
15

DESCRIPTION

17       The  attach  command  allows you to attach to a running container using
18       the container's ID or name, either to view its  ongoing  output  or  to
19       control it interactively.
20
21
22       You  can  detach from the container (and leave it running) using a con‐
23       figurable key sequence. The default sequence is ctrl-p,ctrl-q.  Config‐
24       ure  the keys sequence using the --detach-keys option, or specifying it
25       in the containers.conf file: see containers.conf(5) for  more  informa‐
26       tion.
27
28

OPTIONS

30   --detach-keys=sequence
31       Specify  the key sequence for detaching a container. Format is a single
32       character [a-Z] or one or more ctrl-<value> characters where <value> is
33       one  of: a-z, @, ^, [, , or _. Specifying "" will disable this feature.
34       The default is ctrl-p,ctrl-q.
35
36
37   --latest, -l
38       Instead of providing the container name or ID,  use  the  last  created
39       container.  If you use methods other than Podman to run containers such
40       as CRI-O, the last started container could  be  from  either  of  those
41       methods. (This option is not available with the remote Podman client)
42
43
44   --no-stdin
45       Do not attach STDIN. The default is false.
46
47
48   --sig-proxy=true|false
49       Proxy  received  signals  to  the process (non-TTY mode only). SIGCHLD,
50       SIGSTOP, and SIGKILL are not proxied. The default is true.
51
52

EXAMPLES

54              $ podman attach foobar
55              [root@localhost /]#
56
57
58
59              $ podman attach --latest
60              [root@localhost /]#
61
62
63
64              $ podman attach 1234
65              [root@localhost /]#
66
67
68
69              $ podman attach --no-stdin foobar
70
71
72

SEE ALSO

74       podman(1), podman-exec(1), podman-run(1), containers.conf(5)
75
76
77
78                                                            podman-attach(1)()
Impressum