github.com/hanks177/podman/v4@v4.1.3-0.20220613032544-16d90015bc83/docs/source/markdown/podman-mount.1.md (about)

     1  % podman-mount(1)
     2  
     3  ## NAME
     4  podman\-mount - Mount a working container's root filesystem
     5  
     6  ## SYNOPSIS
     7  **podman mount** [*options*] [*container* ...]
     8  
     9  **podman container mount** [*options*] [*container* ...]
    10  
    11  ## DESCRIPTION
    12  Mounts the specified containers' root file system in a location which can be
    13  accessed from the host, and returns its location.
    14  
    15  If you execute the command without any arguments, Podman will list all of the
    16  currently mounted containers, including external containers. External containers are
    17  containers in container/storage by tools other than Podman. For example Buildah and
    18  CRI-O.
    19  
    20  Rootless mode only supports mounting VFS driver, unless you enter the user namespace
    21  via the `podman unshare` command. All other storage drivers will fail to mount.
    22  
    23  ## RETURN VALUE
    24  The location of the mounted file system.  On error an empty string and errno is
    25  returned.
    26  
    27  ## OPTIONS
    28  
    29  #### **--all**, **-a**
    30  
    31  Mount all podman containers. (External containers will not be mounted)
    32  
    33  #### **--format**=*format*
    34  
    35  Print the mounted containers in specified format (json).
    36  
    37  #### **--latest**, **-l**
    38  
    39  Instead of providing the container name or ID, use the last created container.
    40  If you use methods other than Podman to run containers such as CRI-O, the last
    41  started container could be from either of those methods. (This option is not available with the remote Podman client, including Mac and Windows (excluding WSL2) machines)
    42  
    43  #### **--no-trunc**
    44  
    45  Do not truncate the output (default *false*).
    46  
    47  ## EXAMPLE
    48  
    49  ```
    50  podman mount c831414b10a3
    51  
    52  /var/lib/containers/storage/overlay/f3ac502d97b5681989dff84dfedc8354239bcecbdc2692f9a639f4e080a02364/merged
    53  ```
    54  
    55  ```
    56  podman mount
    57  
    58  c831414b10a3 /var/lib/containers/storage/overlay/f3ac502d97b5681989dff84dfedc8354239bcecbdc2692f9a639f4e080a02364/merged
    59  a7060253093b /var/lib/containers/storage/overlay/0ff7d7ca68bed1ace424f9df154d2dd7b5a125c19d887f17653cbcd5b6e30ba1/merged
    60  ```
    61  ```
    62  podman mount c831414b10a3 a7060253093b
    63  
    64  /var/lib/containers/storage/overlay/f3ac502d97b5681989dff84dfedc8354239bcecbdc2692f9a639f4e080a02364/merged
    65  /var/lib/containers/storage/overlay/0ff7d7ca68bed1ace424f9df154d2dd7b5a125c19d887f17653cbcd5b6e30ba1/merged
    66  ```
    67  
    68  ```
    69  podman mount
    70  
    71  c831414b10a3 /var/lib/containers/storage/overlay/f3ac502d97b5681989dff84dfedc8354239bcecbdc2692f9a639f4e080a02364/merged
    72  a7060253093b /var/lib/containers/storage/overlay/0ff7d7ca68bed1ace424f9df154d2dd7b5a125c19d887f17653cbcd5b6e30ba1/merged
    73  ```
    74  
    75  ## SEE ALSO
    76  **[podman(1)](podman.1.md)**, **[podman-umount(1)](podman-umount.1.md)**, **[podman-unshare(1)](podman-unshare.1.md)**, **mount(8)**