問題:
I've recently seen the --no-cache-dir
being used in a Docker file.我最近看到 Docker 文件中使用了--no-cache-dir
。 I've never seen that flag before and the help is not explaining it:我以前從未見過那個標誌,幫助也沒有解釋它:
--no-cache-dir Disable the cache.
- Question: What is cached?問題:緩存是什麼?
- Question: What is the cache used for?問題:緩存有什麼用?
- Question: Why would I want to disable it?問題:我爲什麼要禁用它?
解決方案:
參考一: https://en.stackoom.com/question/35JGV參考二: https://stackoom.com/question/35JGV