docker共享同步文件

启动容器的时候用这样的命令:
docker run -d -p 1234:8080 --name mydef -v /hostpath/share:/usr/local/share -v /hostpath/share2:/usr/local/share2 --privileged-true jingxiangname
其中 privileged-true 代表强制写权限

发表评论?

0 条评论。

发表评论


注意 - 你可以用以下 HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>