You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Moritz Röhrich edited this page Nov 6, 2020
·
2 revisions
Use the -y switch to avoid manual input dnf install -y <package>
Problematic code:
FROM fedora:32
RUN dnf install httpd-2.4.46 && dnf clean all
Correct code:
FROM fedora:32
RUN dnf install -y httpd-2.4.46 && dnf clean all
Rationale:
Omitting the non-interactive switch causes the command to fail during the build process, because dnf would expect manual input. Use the -y or the equivalent --assumeyes flag to avoid this.