Skip to content

Files

Latest commit

 

History

History
25 lines (16 loc) · 612 Bytes

DL3030.md

File metadata and controls

25 lines (16 loc) · 612 Bytes

Pattern: Missing -y flag for yum

Issue: -

Description

Without the -y flag or the equivalent --assumeyes flag, yum will not successfully install a package, because human input is expected. The -y flag makes yum assume 'yes' as the answer to prompts during the installation.

Example of incorrect code:

FROM centos
RUN yum install httpd-2.24.4 && yum clean all

Example of correct code:

FROM centos
RUN yum install -y httpd-2.24.4 && yum clean all

Further Reading