DL3030: Use the -y switch for yum install
Warning Best Practice
Why This Matters
yum install without -y prompts for confirmation interactively. Since there is no terminal to respond during a Docker build, the build will hang or fail. In CI/CD pipelines, this results in silent build failures that waste time debugging. Always use -y to auto-confirm package installations.
How to Fix
Add -y flag to yum install
Before (incorrect)
RUN yum install httpd After (correct)
RUN yum install -y httpd Rule Details
- Rule Code
- DL3030
- Severity
- Warning
- Category
- Best Practice