github.com/containers/podman/v5@v5.1.0-rc1/docs/source/markdown/podman-attach.1.md.in (about)

     1  % podman-attach 1
     2  
     3  ## NAME
     4  podman\-attach - Attach to a running container
     5  
     6  ## SYNOPSIS
     7  **podman attach** [*options*] *container*
     8  
     9  **podman container attach** [*options*] *container*
    10  
    11  ## DESCRIPTION
    12  **podman attach** attaches to a running *container* using the *container's name* or *ID*, to either view its ongoing output or to control it interactively.\
    13  The *container* can be detached from (and leave it running) using a configurable key sequence. The default sequence is `ctrl-p,ctrl-q`. Configure the keys sequence using the **--detach-keys** OPTION, or specifying it in the `containers.conf` file: see **[containers.conf(5)](https://github.com/containers/common/blob/main/docs/containers.conf.5.md)** for more information.
    14  
    15  ## OPTIONS
    16  @@option detach-keys
    17  
    18  @@option latest
    19  
    20  #### **--no-stdin**
    21  
    22  Do not attach STDIN. The default is **false**.
    23  
    24  @@option sig-proxy
    25  
    26  The default is **true**.
    27  
    28  ## EXAMPLES
    29  Attach to a container called "foobar".
    30  ```
    31  $ podman attach foobar
    32  ```
    33  
    34  Attach to the latest created container. (This option is not available with the remote Podman client, including Mac and Windows (excluding WSL2) machines)
    35  ```
    36  $ podman attach --latest
    37  ```
    38  
    39  Attach to a container that start with the ID "1234".
    40  ```
    41  $ podman attach 1234
    42  ```
    43  
    44  Attach to a container without attaching STDIN.
    45  ```
    46  $ podman attach --no-stdin foobar
    47  ```
    48  
    49  ## SEE ALSO
    50  **[podman(1)](podman.1.md)**, **[podman-exec(1)](podman-exec.1.md)**, **[podman-run(1)](podman-run.1.md)**, **[containers.conf(5)](https://github.com/containers/common/blob/main/docs/containers.conf.5.md)**