yum install
DOK-W1003yum install -y <package>-<version>
.14
15FROM centos
16MAINTAINER Niranjan Rajendran <[email protected]>
17RUN yum -y install /usr/bin/ps nfs-utils && yum clean all18RUN mkdir -p /data
19ADD run_nfs.sh /usr/local/bin/
20
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.
RUN yum install -y httpd && yum clean all
RUN yum install -y httpd-2.24.2 && yum clean all