知识卡片
缓存清理需区分状态与类型
陈旧或损坏缓存可能导致怪异失败,但应先识别层缓存、包缓存还是运行数据卷。清掉错误缓存可恢复,却不证明根因解决;Docker构建清理命令不等于删除所有运行卷,清理也可能带来重新下载成本。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- · 查看原书依据
If you encounter any errors relating to stale or corrupted caches when you’re running a command, you can simply delete the cache and try to command again: To clear the cache using batect, you can run the following command: ./batect --clean To clear the cache using Docker, you can run the following command: docker builder prune If we use containers without specifying any caches, we
参考来源
- 位置:《Effective Machine Learning Teams (David Tan, Ada Leung, David Colls)》第03章《依赖管理的原则与工具》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Effective Machine Learning Teams (David Tan, Ada Leung, David Colls)/_epub-src/OEBPS/ch03.html)
- 结论依据:摘录中关于缓存清理需区分状态与类型的定义、比较或条件支撑卡片;原书表述不严谨的范围已在覆盖记录逐项限定,不把案例结果外推为普遍结论。
- 原始内容:If you encounter any errors relating to stale or corrupted caches when you’re running a command, you can simply delete the cache and try to command again: To clear the cache using batect, you can run the following command: ./batect --clean To clear the cache using Docker, you can run the following command: docker builder prune If we use containers without specifying any caches, we