podman-attach(1)
β¨ podman-attach β attach to a running container β¨
okay bestie, welcome to the podman-attach(1) page from the General Commands Manual π this one's short and sweet and honestly? iconic.
πΈ NAME πΈ
podman-attach β attach to a running container
π¦ SYNOPSIS π¦
podman attach [options] container
podman container attach [options] container
π DESCRIPTION π
So podman attach does exactly what it says on the tin: it attaches you to a running container, either by its name or its ID, so you can either just vibe and watch its ongoing output, or take full control of it interactively. main character energy fr fr π
And the way that you don't have to stay forever?? You can detach from the container (and leave it running, she's fine, she's thriving) using a configurable key sequence. The default sequence is ctrl-p,ctrl-q. You can configure that keys sequence with the --detach-keys OPTION, or you can set it in the containers.conf file β go peek at containers.conf(5) for more info π«Ά
β¨ OPTIONS β¨
--detach-keys=sequenceβ tells podman what key sequence detaches you from the container. The format is either a single character[a-Z], or one or morectrl-<value>characters where<value>is one of:a-z,@,^,[,,or_. If you specify""it disables this feature entirely (no escape hatch, you're committed π). The default isctrl-p,ctrl-q.
This option can also be set in the containers.conf(5) file.
--latest,-lβ instead of handing over a container name or ID, just use the last created container. Note: the last started container can be from other users of Podman on the host machine π. (This option is not available with the remote Podman client, including Mac and Windows (excluding WSL2) machines.)--no-stdinβ do not attach STDIN. The default isfalse.--sig-proxyβ proxy received signals to the container process.SIGCHLD,SIGURG,SIGSTOP, andSIGKILLare not proxied. The default istrue.
π EXAMPLES π
Attach to a container called "foobar".
$ podman attach foobar
Attach to the latest created container. (This option is not available with the remote Podman client, including Mac and Windows (excluding WSL2) machines)
$ podman attach --latest
Attach to a container that start with the ID "1234".
$ podman attach 1234
Attach to a container without attaching STDIN.
$ podman attach --no-stdin foobar
π SEE ALSO π
podman(1), podman-exec(1), podman-run(1), containers.conf(5)
lowkey the whole page is just "attach, watch, maybe type, detach with ctrl-p,ctrl-q, slay" and honestly? that's the vibe check passed π
and that's a wrap on the podman-attach(1) page from the General Commands Manual β go forth and attach responsibly bestie, ily, mwah π«Άβ¨π
π¦ where this page comes from
- arch rolling: podman-docker 6.1.4-1 Β· Apache-2.0
- fedora 43: podman-docker 5:5.6.2-1.fc43 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0
- fedora 43: podman-docker 5:5.8.4-1.fc43
- fedora 43: podman-docker 5:5.8.8-1.fc43
- fedora 43: podman-docker 5:5.8.9-1.fc43 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0
- fedora 44: podman-docker 5:5.8.1-1.fc44 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0
- fedora 44: podman-docker 5:5.8.7-1.fc44
- fedora 44: podman-docker 5:5.8.9-1.fc44 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0
- ubuntu resolute: podman-docker 5.7.0+ds2-3build1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms