Why does container image build fail with openssl dependency error?

Solution Verified - Updated -


  • While trying to install openssl on top of EAP 7.2 base image and following error appears.
FROM registry.redhat.io/jboss-eap-7/eap72-openshift:1.2-8
USER root
COPY bin/* /usr/local/bin/
RUN yum install -y telnet nmap zip unzip tar iputils bind-utils traceroute openssl git && \
    yum clean all && \
    rm -rf /var/cache/* && \
    mkdir -p /home && \
    chown root:root /home && \
    chmod 775 /home && \
    chmod 755 /usr/local/bin/oc && \
    chmod g=u /etc/passwd
  • Here is the output from the build:
Error: Package: 1:openssl-1.0.2k-16.el7_6.1.x86_64 (rhel-7-server-rpms)
           Requires: openssl-libs(x86-64) = 1:1.0.2k-16.el7_6.1
           Installed: 1:openssl-libs-1.0.2k-19.el7.x86_64 (@anaconda/7.7)
               openssl-libs(x86-64) = 1:1.0.2k-19.el7


  • Red Hat OpenShift Container Platform 4.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content