github.com/containers/podman/v2@v2.2.2-0.20210501105131-c1e07d070c4c/docs/source/markdown/podman-attach.1.md (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  The attach command allows you to attach to a running container using the container's ID
    13  or name, either to view its ongoing output or to control it interactively.
    14  
    15  You can detach from the container (and leave it running) using a configurable key sequence. The default
    16  sequence is `ctrl-p,ctrl-q`.
    17  Configure the keys sequence using the **--detach-keys** option, or specifying
    18  it in the **containers.conf** file: see **containers.conf(5)** for more information.
    19  
    20  ## OPTIONS
    21  #### **--detach-keys**=*sequence*
    22  
    23  Specify the key sequence for detaching a container. Format is a single character `[a-Z]` or one or more `ctrl-<value>` characters where `<value>` is one of: `a-z`, `@`, `^`, `[`, `,` or `_`. Specifying "" will disable this feature. The default is *ctrl-p,ctrl-q*.
    24  
    25  #### **--latest**, **-l**
    26  
    27  Instead of providing the container name or ID, use the last created container. If you use methods other than Podman
    28  to run containers such as CRI-O, the last started container could be from either of those methods.
    29  
    30  The latest option is not supported on the remote client.
    31  
    32  #### **--no-stdin**
    33  
    34  Do not attach STDIN. The default is false.
    35  
    36  #### **--sig-proxy**=*true*|*false*
    37  
    38  Proxy received signals to the process (non-TTY mode only). SIGCHLD, SIGSTOP, and SIGKILL are not proxied. The default is *true*.
    39  
    40  ## EXAMPLES
    41  
    42  ```
    43  $ podman attach foobar
    44  [root@localhost /]#
    45  ```
    46  ```
    47  $ podman attach --latest
    48  [root@localhost /]#
    49  ```
    50  ```
    51  $ podman attach 1234
    52  [root@localhost /]#
    53  ```
    54  ```
    55  $ podman attach --no-stdin foobar
    56  ```
    57  ## SEE ALSO
    58  podman(1), podman-exec(1), podman-run(1), containers.conf(5)