yum-yes
What it does
Section titled “What it does”Reports a yum install, yum groupinstall or yum localinstall without -y or --assumeyes.
Why it matters
Section titled “Why it matters”Before it installs, yum asks Is this ok [y/N]. A build has no terminal to answer, so yum reads the missing answer as no, exits with an error, and the RUN fails.
Example
Section titled “Example”FROM fedora:40RUN yum install curlRUN yum install -y curl-7.0 && yum clean allRUN yum install -y curl-7.0 && rm -rf /var/cache/yum/*RUN yum install -y nginx-1.2 && yum clean all...Configuration
Section titled “Configuration”dockerfile: lint: rules: yum-yes: warn # off, warn (default), errorEnabled by the presets: dockerfile/hadolint.
Suppress one line with sudsy-disable-next-line yum-yes in a comment of the file’s language.
Upstream equivalents
Section titled “Upstream equivalents”The same check in other tools; Sudsy reports what each upstream rule reports.
| Tool | Rule | Match |
|---|---|---|
| hadolint | DL3030 |
full |