docker service create 命令学习记录主要是映射、挂载目录的用法

74次阅读
没有评论

共计 519 个字符,预计需要花费 2 分钟才能阅读完成。

docker service create --replicas 1 --name hndf-admin-go-api -p 8080:8080 --mount type=bind,src=/www/wwwroot/hndf_admin.devtest/config,dst=/go/src/config --mount type=bind,src=/www/wwwroot/hndf_admin.devtest/res,dst=/go/src/res --mount type=bind,src=/www/wwwroot/hndf_admin.devtest/wwwroot,dst=/go/src/wwwroot --mount type=bind,src=/www/wwwroot/hndf_admin.devtest/tmp,dst=/go/src/tmp registry.cn-shenzhen.aliyuncs.com/xxx/xxx:v0.0.2

--mount type=bind,src=/www/wwwroot/hndf_admin.devtest/tmp,dst=/go/src/tmp,readonly

例如上面,后面带上 ,readonly 的说明是只读

正文完
 0
Eric chan
版权声明:本站原创文章,由 Eric chan 于2021-07-27发表,共计519字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。