Pattern: Missing version for yum install
Issue: -
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