Chinaunix

标题: 求教关于启动容器时挂载卷-z的参数 [打印本页]

作者: soulmoon    时间: 2021-08-01 15:02
标题: 求教关于启动容器时挂载卷-z的参数
podman run -dit -v /opt:/opt centos :Z   

-Z参数是啥意思?好像大写Z小写z意思不一样? 官网英文,没有看太懂



作者: arrow007    时间: 2021-08-13 17:48
没有:Z;应该是:z

--volumes-from[=CONTAINER[:OPTIONS]]
Mount volumes from the specified container(s). Used to share volumes between containers. The options is a comma-separated list with the following available elements:

    rw|ro
    z
To change a label in the container context, you can add z to the volume mount. This suffix tells Podman to relabel file objects on the shared volumes. The z option tells Podman that two containers share the volume content. As a result, Podman labels the content with a shared content label. Shared volume labels allow all containers to read/write content.

http://docs.podman.io/en/latest/ ... m-container-options




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2