1 DL3034
Moritz Röhrich edited this page 2020-10-21 22:49:06 +02:00

Non-interactive switch missing from zypper command: zypper install -y

Problematic code:

RUN zypper install httpd=2.4.46 && zypper clean

Correct code:

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

Rationale:

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.