github.com/containers/podman/v2@v2.2.2-0.20210501105131-c1e07d070c4c/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 then 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.
    42  
    43  The latest option is not supported on the remote client.
    44  
    45  #### **--notruncate**
    46  
    47  Do not truncate IDs in output.
    48  
    49  ## EXAMPLE
    50  
    51  ```
    52  podman mount c831414b10a3
    53  
    54  /var/lib/containers/storage/overlay/f3ac502d97b5681989dff84dfedc8354239bcecbdc2692f9a639f4e080a02364/merged
    55  ```
    56  
    57  ```
    58  podman mount
    59  
    60  c831414b10a3 /var/lib/containers/storage/overlay/f3ac502d97b5681989dff84dfedc8354239bcecbdc2692f9a639f4e080a02364/merged
    61  a7060253093b /var/lib/containers/storage/overlay/0ff7d7ca68bed1ace424f9df154d2dd7b5a125c19d887f17653cbcd5b6e30ba1/merged
    62  ```
    63  ```
    64  podman mount c831414b10a3 a7060253093b
    65  
    66  /var/lib/containers/storage/overlay/f3ac502d97b5681989dff84dfedc8354239bcecbdc2692f9a639f4e080a02364/merged
    67  /var/lib/containers/storage/overlay/0ff7d7ca68bed1ace424f9df154d2dd7b5a125c19d887f17653cbcd5b6e30ba1/merged
    68  ```
    69  
    70  ```
    71  podman mount
    72  
    73  c831414b10a3 /var/lib/containers/storage/overlay/f3ac502d97b5681989dff84dfedc8354239bcecbdc2692f9a639f4e080a02364/merged
    74  a7060253093b /var/lib/containers/storage/overlay/0ff7d7ca68bed1ace424f9df154d2dd7b5a125c19d887f17653cbcd5b6e30ba1/merged
    75  ```
    76  
    77  ## SEE ALSO
    78  podman(1), podman-umount(1), mount(8), podman-unshare(1)