Skip to content

Files

Latest commit

 

History

History
23 lines (14 loc) · 567 Bytes

DL3034.md

File metadata and controls

23 lines (14 loc) · 567 Bytes

Pattern: Missing -y flag for zypper

Issue: -

Description

Omitting the non-interactive switch causes the command to fail during the build process, because zypper would expect manual input. Use the -y or the equivalent --no-confirm flag to avoid this.

Example of incorrect code:

RUN zypper install httpd=2.4.46 && zypper clean

Example of correct code:

RUN zypper install -y httpd=2.4.46 && zypper clean

Further Reading