1podman-attach(1) General Commands Manual podman-attach(1)
2
3
4
6 podman-attach - Attach to a running container
7
8
10 podman attach [options] container
11
12
14 The attach command allows you to attach to a running container using
15 the container's ID or name, either to view its ongoing output or to
16 control it interactively.
17
18
19 You can detach from the container (and leave it running) using a
20 configurable key sequence. The default sequence is ctrl-p,ctrl-q. You
21 configure the key sequence using the --detach-keys option
22
23
25 --detach-keys=""
26
27
28 Override the key sequence for detaching a container. Format is a single
29 character [a-Z] or ctrl-<value> where <value> is one of: a-z, @, ^, [,
30 \\, ], ^ or _.
31
32
33 --latest, -l
34
35
36 Instead of providing the container name or ID, use the last created
37 container. If you use methods other than Podman to run containers such
38 as CRI-O, the last started container could be from either of those
39 methods.
40
41
42 The latest option is not supported on the remote client.
43
44
45 --no-stdin
46
47
48 Do not attach STDIN. The default is false.
49
50
51 --sig-proxy=true|false
52
53
54 Proxy received signals to the process (non-TTY mode only). SIGCHLD,
55 SIGSTOP, and SIGKILL are not proxied. The default is true.
56
57
59 $ podman attach foobar
60 [root@localhost /]#
61
62
63
64 $ podman attach --latest
65 [root@localhost /]#
66
67
68
69 $ podman attach 1234
70 [root@localhost /]#
71
72
73
74 $ podman attach --no-stdin foobar
75
76
77
79 podman(1), podman-exec(1), podman-run(1)
80
81
82
83 podman-attach(1)