Skip to content

What is the relationship of [rw|ro] and the propagation options for volume #20555

Closed
@gyliu513

Description

The docker volume now support some propagation options as following:

-v, --volume=[host-src:]container-dest[:]: Bind mount a volume.
The comma-delimited options are [rw|ro], [z|Z], or
[[r]shared|[r]slave|[r]private]. The 'host-src' is an absolute path or a
name value.

So if I specified a volume as shared, then does the volume is rw or ro? What is the relationship of [rw|ro] and [[r]shared|[r]slave|[r]private].

Also can anyone help explain what does [z|Z] mean here?

Thanks.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions