I'm trying to build a CentOS 7 Docker container from a minimal template as below


RUN yum -y install yum-plugin-ovl \
 && yum -y install lsof perl file tar gzip gdb \
                   bzip2 openssh rsyslog psmisc initscripts \
                   strace tcpdump gcc

ADD rsyslog.conf /etc/rsyslog.conf
ADD elementtree-1.2.6-20050316.tar.gz /tmp/

but keep facing this glibc dependency error on my VM. Sorry I could not copy paste the error as text, but only have this at the moment

enter image description here

The following are the versions of glibc header/commons installed on my host VM

rpm -qa | grep glibc

I'm not sure if this a dependency between 32 and 64-bit packages of glibc installed on my VM. I'm relatively newer to building such containers, so would appreciate some feedback on this.


The problem is that one of your packages tries to install glibc-2.17-260.el7_6.5.i686, which requires the exact same version of glibc-common. However glibc-common is already installed with a slightly superior version number; whence it fails.

What can you do?

  • downgrade glibc-common to that exact same version if it is available in your repositories
  • make sure glibc*i686 is available in your repositories with the same version as glibc-common; maybe installing the epel-release repositories will help you out with that:

install epel-release first:

RUN yum -y install epel-release\
    && yum -y install yum-plugin-ovl\
  • Will try this out right away! but I see the conflict between i386 and x86_64 packages of the same (from the error above ). Is it something also to consider? – Inian Jul 10 at 7:30
  • well for one it is strange that he is trying to install i686 packages, but that is not necessarily a problem. When they are part of multilib, yum will impose that both thave the exact same version number. – Chris Maes Jul 10 at 7:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.