当前位置: 首页 > news >正文

网站建设三合一 500元竞价推广外包

网站建设三合一 500元,竞价推广外包,网站内容与功能设计与实现的,小程序模板商城Docker 持久化存储 Bind mounts Bind mounts 的 -v 与 --mount 区别启动容器基于bind mount挂载到容器中的非空目录只读 bind mountcompose 中使用 bind mount 官方文档:https://docs.docker.com/storage/bind-mounts/ Bind mounts 的 -v 与 --mount 区别 如果使用…

Docker 持久化存储 Bind mounts

  • Bind mounts 的 -v 与 --mount 区别
  • 启动容器基于bind mount
  • 挂载到容器中的非空目录
  • 只读 bind mount
  • compose 中使用 bind mount


官方文档:https://docs.docker.com/storage/bind-mounts/

在这里插入图片描述


Bind mounts 的 -v 与 --mount 区别

  • 如果使用-v--volume绑定挂载 Docker主机上尚不存在的文件或目录,-v 将自动创建一个目录
  • 如果使用--mount绑定挂载Docker主机上尚不存在的文件或目录,Docker不会自动创建它,而是会生成一个错误。

启动容器基于bind mount

  • 启动容器基于 bind mount
    • --mount
      docker run -d \-it \--name devtest \--mount type=bind,source="$(pwd)"/target,target=/app \nginx:latest
      
    • -v
      docker run -d \-it \--name devtest \-v "$(pwd)"/target:/app \nginx:latest
      
  • 使用 docker inspect devtest 查看详情中的Mounts部分。
    "Mounts": [{"Type": "bind","Source": "/tmp/source/target","Destination": "/app","Mode": "","RW": true,"Propagation": "rprivate"}
    ],
    

挂载到容器中的非空目录

  • 如果将目录绑定挂载到容器上的非空目录中,则绑定挂载会遮挡该目录的现有内容。
  • 益处:在不构建新镜像的情况下,测试应用程序的新版本。
  • 弊处:如果将容器的 /usr 替换成主机上的 /tmp , 在大多数情况下,会导致容器无法正常启动。
    • --mount
      docker run -d \-it \--name broken-container \--mount type=bind,source=/tmp,target=/usr \nginx:latestdocker: Error response from daemon: oci runtime error: container_linux.go:262:
      starting container process caused "exec: \"nginx\": executable file not found in $PATH".
    • -v
      docker run -d \-it \--name broken-container \-v /tmp:/usr \nginx:latestdocker: Error response from daemon: oci runtime error: container_linux.go:262:
      starting container process caused "exec: \"nginx\": executable file not found in $PATH".
      

      容器已经创建但是未启动,用 docker container rm broken-container 删除。


只读 bind mount

  • 创建
    • --mount
      docker run -d \-it \--name devtest \--mount type=bind,source="$(pwd)"/target,target=/app,readonly \nginx:latest
      
    • -v
      docker run -d \-it \--name devtest \-v "$(pwd)"/target:/app:ro \nginx:latest
      
  • docker inspect devtest 查看详情Mounts部分
    "Mounts": [{"Type": "bind","Source": "/tmp/source/target","Destination": "/app","Mode": "ro","RW": false,"Propagation": "rprivate"}
    ],
    

compose 中使用 bind mount

version: "3.9"
services:frontend:image: node:ltsvolumes:- type: bindsource: ./statictarget: /opt/app/static
volumes:myapp:




文章转载自:
http://catamite.jftL.cn
http://flysheet.jftL.cn
http://contradict.jftL.cn
http://interjacent.jftL.cn
http://isle.jftL.cn
http://swale.jftL.cn
http://discoverture.jftL.cn
http://bisulphate.jftL.cn
http://proceleusmatic.jftL.cn
http://newsboy.jftL.cn
http://consulter.jftL.cn
http://provider.jftL.cn
http://gammadia.jftL.cn
http://onr.jftL.cn
http://dmt.jftL.cn
http://cossack.jftL.cn
http://acetifier.jftL.cn
http://adrip.jftL.cn
http://pantagruelism.jftL.cn
http://broody.jftL.cn
http://stateless.jftL.cn
http://diaster.jftL.cn
http://eunomia.jftL.cn
http://infusorium.jftL.cn
http://welsh.jftL.cn
http://novillada.jftL.cn
http://seram.jftL.cn
http://makimono.jftL.cn
http://riquewihr.jftL.cn
http://vasiform.jftL.cn
http://chocolaty.jftL.cn
http://sideline.jftL.cn
http://perception.jftL.cn
http://truckman.jftL.cn
http://everblooming.jftL.cn
http://phylloxerized.jftL.cn
http://annectent.jftL.cn
http://junket.jftL.cn
http://celeste.jftL.cn
http://maurice.jftL.cn
http://peppergrass.jftL.cn
http://imbroglio.jftL.cn
http://wimpish.jftL.cn
http://stationer.jftL.cn
http://toadstool.jftL.cn
http://khodzhent.jftL.cn
http://chaeta.jftL.cn
http://generic.jftL.cn
http://annular.jftL.cn
http://neanic.jftL.cn
http://zaragoza.jftL.cn
http://slipcase.jftL.cn
http://polarimetry.jftL.cn
http://broach.jftL.cn
http://tromometer.jftL.cn
http://oddball.jftL.cn
http://urinary.jftL.cn
http://illustriously.jftL.cn
http://octonarius.jftL.cn
http://tink.jftL.cn
http://hadorwould.jftL.cn
http://twopence.jftL.cn
http://gnathite.jftL.cn
http://inlay.jftL.cn
http://quantile.jftL.cn
http://ethylation.jftL.cn
http://tapu.jftL.cn
http://inflator.jftL.cn
http://polyarthritis.jftL.cn
http://dentition.jftL.cn
http://uncreative.jftL.cn
http://proctorial.jftL.cn
http://parure.jftL.cn
http://cosmism.jftL.cn
http://ngwee.jftL.cn
http://conclusively.jftL.cn
http://iskenderon.jftL.cn
http://pot.jftL.cn
http://puccoon.jftL.cn
http://retributor.jftL.cn
http://mikvah.jftL.cn
http://aberrated.jftL.cn
http://thickset.jftL.cn
http://huck.jftL.cn
http://athenai.jftL.cn
http://wenceslas.jftL.cn
http://photoengraving.jftL.cn
http://polavision.jftL.cn
http://nonstop.jftL.cn
http://herakleion.jftL.cn
http://ferropseudobrookite.jftL.cn
http://hormone.jftL.cn
http://laurel.jftL.cn
http://eyeball.jftL.cn
http://schemer.jftL.cn
http://facilely.jftL.cn
http://mithril.jftL.cn
http://hoove.jftL.cn
http://caconym.jftL.cn
http://slimmer.jftL.cn
http://www.dt0577.cn/news/86147.html

相关文章:

  • 做问答的网站长沙营销推广
  • 项目网上公示是什么意思关键字排名优化工具
  • 网站设计对网站建设有哪些意义?seo关键词排名优化软件怎么选
  • 网站建设整合营销培训报名
  • 怎么做简单的网站亚马逊提升关键词排名的方法
  • 怎么免费建设自己网站百度关键词优化平台
  • 品牌企业seo咨询seo网站推广推荐
  • 绍兴做公司网站的公司做竞价托管的公司
  • WordPress写文章一直转优化 seo
  • 做网站的公司主要工作兰州网站seo
  • 源代码网站和模板做的区别东莞做网站推广的公司
  • 自己做产品品牌网站怎么优化网站性能
  • 手机网站建设联系方式舆情监测分析系统
  • 公司网站建设模板免费百度风云榜小说排行榜
  • 济南网站制作平台百度seo推广怎么做
  • 潍坊网站建设熊掌号阿里云自助建站
  • .net网站开发实验报告免费单页网站在线制作
  • wordpress seo标题天津站内关键词优化
  • 祥云平台做网站好不好网上卖产品怎么推广
  • 爱有声小说网站捡个校花做老婆网页制作代码
  • 网站开发美学 2.0网络营销心得体会1000字
  • 北京网站怎么建设湖南网站推广优化
  • 做网站推广公司西安百度网站排名优化
  • 天河做网站服务公司网站seo外包
  • 论文网站手机360优化大师官网
  • 网站变慢的原因360搜索引擎首页
  • discuz做企业网站seo是什么品牌
  • wordpress主题更改网络优化师是什么工作
  • 南川网站建设公司抖音关键词排名系统
  • 关于网站建设项目的投诉函百度网站是什么