sequenceiq / hadoop-docker

Hadoop docker image
https://registry.hub.docker.com/u/sequenceiq/hadoop-docker/
Apache License 2.0
1.21k stars 560 forks source link

Yum Checksum Issue When Updating `libselinux` #62

Closed jwreagor closed 7 years ago

jwreagor commented 7 years ago

I'm using this project to establish a test container before we rebuild it using our own foundation images. During a docker build of master I was unable to get past updating libselinux.

Rpmdb checksum is invalid: dCDPT(pkg checksums): libselinux-utils.x86_64 0:2.0.94-7.el6 - u

The command '/bin/sh -c yum update -y libselinux' returned a non-zero code: 1
jwreagor commented 7 years ago

I found my answer on another project. It worked here. Simply add yum clean all after every yum install or yum update.

Relevant bits of my Dockerfile...

 # install dev tools
-RUN yum clean all; \
-    rpm --rebuilddb; \
-    yum install -y curl which tar sudo openssh-server openssh-clients rsync
+RUN yum clean all \
+    && rpm --rebuilddb \
+    && yum install -y curl which tar sudo openssh-server openssh-clients rsync \
+    && yum clean all \
+    && yum update -y libselinux \
+    && yum clean all
+
 # update libselinux. see https://github.com/sequenceiq/hadoop-docker/issues/14
-RUN yum update -y libselinux
+# RUN yum update -y libselinux

My issue is resolved, only posting here in case someone else runs across it too.

joelplucas commented 7 years ago

It solved my issue too. Thanks!

voidfunction commented 7 years ago

Thanks for your kindly recording! It solved my issue too.

jwreagor commented 7 years ago

Nice to see this helped others!

RohitBarnwal commented 6 years ago

Solved my issue as well, thanks a lot. Used this in another dockerfile.

HtagPersistence commented 4 years ago

Thanks solved mine too