1podman-attach(1)            General Commands Manual           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       podman  attach  attaches  to  a running container using the container's
18       name or ID, to either view its ongoing output or to control it interac‐
19       tively.
20       The  container can be detached from (and leave it running) using a con‐
21       figurable key sequence. The default sequence is ctrl-p,ctrl-q.  Config‐
22       ure  the keys sequence using the --detach-keys OPTION, or specifying it
23       in the containers.conf file: see containers.conf(5) for  more  informa‐
24       tion.
25
26

OPTIONS

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

EXAMPLES

62       Attach to a container called "foobar".
63
64
65              $ podman attach foobar
66
67
68
69       Attach to the latest created container.
70
71
72              $ podman attach --latest
73
74
75
76       Attach to a container that start with the ID "1234".
77
78
79              $ podman attach 1234
80
81
82
83       Attach to a container without attaching STDIN.
84
85
86              $ podman attach --no-stdin foobar
87
88
89

SEE ALSO

91       podman(1), podman-exec(1), podman-run(1), containers.conf(5)
92
93
94
95                                                              podman-attach(1)
Impressum