Docker

Docker

Made by DeepSource

Pin versions in yum install DOK-W1003

Bug risk
Major

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 between versions of dependencies.

Bad Practice

RUN yum install -y httpd && yum clean all

Recommended

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

References