知识卡片
绑定挂载暴露真实主机路径
-v 主机目录:/code让容器直接使用该主机目录,修改会作用于同一文件,不是自动维护两份副本的同步系统。挂载还可能遮住镜像中原有路径,因此需检查代码与工件究竟从哪里来。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
- · 依赖管理实践
原书出处 · 1 处
- · 查看原书依据
-v $(pwd):/code \ -p 80:80 \ loan-default-prediction:dev This batect task runs our dev container (i.e., a containerized bash shell that forms our development environment). The Docker runtime parameters are encapsulated in the batect task, as defined in batect.yml, so we can run the task without carrying the heavy implementation details you see in the docker run version of the same task. -it is short for
参考来源
- 位置:《Effective Machine Learning Teams (David Tan, Ada Leung, David Colls)》第04章《依赖管理实践》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Effective Machine Learning Teams (David Tan, Ada Leung, David Colls)/_epub-src/OEBPS/ch04.html)
- 结论依据:摘录中关于绑定挂载暴露真实主机路径的定义、比较或条件支撑卡片;原书表述不严谨的范围已在覆盖记录逐项限定,不把案例结果外推为普遍结论。
- 原始内容:-v $(pwd):/code \ -p 80:80 \ loan-default-prediction:dev This batect task runs our dev container (i.e., a containerized bash shell that forms our development environment). The Docker runtime parameters are encapsulated in the batect task, as defined in batect.yml, so we can run the task without carrying the heavy implementation details you see in the docker run version of the same task. -it is short for