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       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 detached from (and leave it running) using a config‐
21       urable key sequence. The default sequence is  ctrl-p,ctrl-q.  Configure
22       the  keys  sequence using the --detach-keys OPTION, or specifying it in
23       the containers.conf file: see containers.conf(5) for more information.
24
25

OPTIONS

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

EXAMPLES

55       Attach to a container called "foobar".
56
57
58              $ podman attach foobar
59
60
61
62       Attach to the latest created container.
63
64
65              $ podman attach --latest
66
67
68
69       Attach to a container that start with the ID "1234".
70
71
72              $ podman attach 1234
73
74
75
76       Attach to a container without attaching STDIN.
77
78
79              $ podman attach --no-stdin foobar
80
81
82

SEE ALSO

84       podman(1), podman-exec(1), podman-run(1), containers.conf(5)
85
86
87
88                                                            podman-attach(1)()
Impressum