Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 559 Bytes

DL3033.md

File metadata and controls

23 lines (14 loc) · 559 Bytes

Pattern: Missing version for yum install

Issue: -

Description

Version pinning forces the build to retrieve a particular version regardless of what’s in the cache. This technique can also reduce failures due to unanticipated changes in required packages.

Example of incorrect code:

RUN yum install -y httpd && yum clean all

Example of correct code:

RUN yum install -y httpd-2.24.2 && yum clean all

Further Reading