#DevOps #Mark

Top 10 common Dockerfile linting issues

使用 hadolint 遇到的常见 [[Dockerfile]] lint 问题,其中大部分都是包管理器的使用问题,什么时候应该使用 cache,什么时候不应该使用 cache。其中 DL3027 推荐使用 apt-get/apt-cache 替代 apt ,理由是 apt 是面向最终用户的接口,可能会发生变化,前者更稳定。
apt-get install --no-install-recommends

pip install --no-cache-dir


source Top 10 common Dockerfile linting issues
 
 
Back to Top
OKHK