zypper-yes
What it does
Section titled “What it does”Reports a zypper command that asks for confirmation. That is install (in), remove (rm), source-install (si) or patch without -n, --non-interactive, --no-confirm or -y.
Why it matters
Section titled “Why it matters”zypper asks for confirmation before it changes packages and, when there is a conflict, which solution to take. A build has no terminal to answer, so the command cannot continue and the RUN fails.
--non-interactive makes zypper take the default answer to every question.
Example
Section titled “Example”...RUN dnf install -y curl-7.0 && dnf clean all...RUN zypper install curlRUN zypper install -y curl=7.0 && zypper clean...Configuration
Section titled “Configuration”dockerfile: lint: rules: zypper-yes: warn # off, warn (default), errorEnabled by the presets: dockerfile/hadolint.
Suppress one line with sudsy-disable-next-line zypper-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 | DL3034 |
full |