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 containers.conf file: see containers.conf(5) for more informa‐
26 tion.
27
28
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.
42
43
44 The latest option is not supported on the remote client.
45
46
47 --no-stdin
48 Do not attach STDIN. The default is false.
49
50
51 --sig-proxy=true|false
52 Proxy received signals to the process (non-TTY mode only). SIGCHLD,
53 SIGSTOP, and SIGKILL are not proxied. The default is true.
54
55
57 $ podman attach foobar
58 [root@localhost /]#
59
60
61
62 $ podman attach --latest
63 [root@localhost /]#
64
65
66
67 $ podman attach 1234
68 [root@localhost /]#
69
70
71
72 $ podman attach --no-stdin foobar
73
74
75
77 podman(1), podman-exec(1), podman-run(1), containers.conf(5)
78
79
80
81 podman-attach(1)()