.nh .TH podman\-attach(1) .SH NAME .PP podman\-attach \- Attach to a running container .SH SYNOPSIS .PP \fBpodman attach\fP [\fIoptions\fP] \fIcontainer\fP .PP \fBpodman container attach\fP [\fIoptions\fP] \fIcontainer\fP .SH DESCRIPTION .PP The attach command allows you to attach to a running container using the container's ID or name, either to view its ongoing output or to control it interactively. .PP You can detach from the container (and leave it running) using a configurable key sequence. The default sequence is \fB\fCctrl\-p,ctrl\-q\fR\&. Configure the keys sequence using the \fB\-\-detach\-keys\fP option, or specifying it in the \fBcontainers.conf\fP file: see \fBcontainers.conf(5)\fP for more information. .SH OPTIONS .SS \fB\-\-detach\-keys\fP=\fIsequence\fP .PP Specify the key sequence for detaching a container. Format is a single character \fB\fC[a\-Z]\fR or one or more \fB\fCctrl\-\fR characters where \fB\fC\fR is one of: \fB\fCa\-z\fR, \fB\fC@\fR, \fB\fC^\fR, \fB\fC[\fR, \fB\fC,\fR or \fB\fC\_\fR\&. Specifying "" will disable this feature. The default is \fIctrl\-p,ctrl\-q\fP\&. .SS \fB\-\-latest\fP, \fB\-l\fP .PP Instead of providing the container name or ID, use the last created container. If you use methods other than Podman to run containers such as CRI\-O, the last started container could be from either of those methods. .PP The latest option is not supported on the remote client. .SS \fB\-\-no\-stdin\fP .PP Do not attach STDIN. The default is false. .SS \fB\-\-sig\-proxy\fP=\fItrue\fP|\fIfalse\fP .PP Proxy received signals to the process (non\-TTY mode only). SIGCHLD, SIGSTOP, and SIGKILL are not proxied. The default is \fItrue\fP\&. .SH EXAMPLES .PP .RS .nf $ podman attach foobar [root@localhost /]# .fi .RE .PP .RS .nf $ podman attach \-\-latest [root@localhost /]# .fi .RE .PP .RS .nf $ podman attach 1234 [root@localhost /]# .fi .RE .PP .RS .nf $ podman attach \-\-no\-stdin foobar .fi .RE .SH SEE ALSO .PP podman(1), podman\-exec(1), podman\-run(1), containers.conf(5)