1podman-attach(1)() podman-attach(1)()
2
3
4
6 podman-attach - Attach to a running container
7
8
10 podman attach [options] container
11
12
13 podman container attach [options] container
14
15
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 libpod.conf file: see libpod.conf(5) for more information.
26
27
29 --detach-keys=sequence
30
31
32 Override the key sequence for detaching a container. Format is a single
33 character [a-Z] or a comma separated sequence of ctrl-<value>, where
34 <value> is one of: a-z, @, ^, [, \\, ], ^ or _.
35
36
37 --latest, -l
38
39
40 Instead of providing the container name or ID, use the last created
41 container. If you use methods other than Podman to run containers such
42 as CRI-O, the last started container could be from either of those
43 methods.
44
45
46 The latest option is not supported on the remote client.
47
48
49 --no-stdin
50
51
52 Do not attach STDIN. The default is false.
53
54
55 --sig-proxy=true|false
56
57
58 Proxy received signals to the process (non-TTY mode only). SIGCHLD,
59 SIGSTOP, and SIGKILL are not proxied. The default is true.
60
61
63 $ podman attach foobar
64 [root@localhost /]#
65
66
67
68 $ podman attach --latest
69 [root@localhost /]#
70
71
72
73 $ podman attach 1234
74 [root@localhost /]#
75
76
77
78 $ podman attach --no-stdin foobar
79
80
81
83 podman(1), podman-exec(1), podman-run(1)
84
85
86
87 podman-attach(1)()