github.com/containers/podman/v5@v5.1.0-rc1/docs/source/markdown/options/volumes-from.md (about)

     1  ####> This option file is used in:
     2  ####>   podman create, pod clone, pod create, run
     3  ####> If file is edited, make sure the changes
     4  ####> are applicable to all of those.
     5  #### **--volumes-from**=*CONTAINER[:OPTIONS]*
     6  
     7  Mount volumes from the specified container(s). Used to share volumes between
     8  containers<<| and pods>>. The *options* is a comma-separated list with the following available elements:
     9  
    10  * **rw**|**ro**
    11  * **z**
    12  
    13  Mounts already mounted volumes from a source container onto another
    14  <<container|pod>>. _CONTAINER_ may be a name or ID.
    15  To share a volume, use the --volumes-from option when running
    16  the target container. Volumes can be shared even if the source container
    17  is not running.
    18  
    19  By default, Podman mounts the volumes in the same mode (read-write or
    20  read-only) as it is mounted in the source container.
    21  This can be changed by adding a `ro` or `rw` _option_.
    22  
    23  Labeling systems like SELinux require that proper labels are placed on volume
    24  content mounted into a <<container|pod>>. Without a label, the security system might
    25  prevent the processes running inside the container from using the content. By
    26  default, Podman does not change the labels set by the OS.
    27  
    28  To change a label in the <<container|pod>> context, add `z` to the volume mount.
    29  This suffix tells Podman to relabel file objects on the shared volumes. The `z`
    30  option tells Podman that two entities share the volume content. As a result,
    31  Podman labels the content with a shared content label. Shared volume labels allow
    32  all containers to read/write content.
    33  
    34  If the location of the volume from the source container overlaps with
    35  data residing on a target <<container|pod>>, then the volume hides
    36  that data on the target.