Skip to main content
Non-interactive switch missing from zypper command: zypper install -y.

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 ensure unattended operation inside a Dockerfile.

Examples

Problematic code

Correct code

Auto-fix

Adds -n (non-interactive) flag to zypper install, in, remove, rm, patch, source-install, and si commands.

Reference