Docker Community Forums

Share and learn in the Docker community.

Cpio: lsetfilecon error on package install


(Marcelofr) #1

Hi!

I’m a newbie with docker and I need to run some legacy app under centos 4 i386. I tried a few docker hub images on a centos 7 fully updated, running docker-engine-1.12.1-1.el7.centos.x86_64 and docker-engine-selinux-1.12.1-1.el7.centos.noarch, even tried 64 bits images. After pointing repos to vault, where required, I can’t install new packages with yum:

Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : openldap ######################### [1/3]
error: unpacking of archive failed on file /etc/openldap: cpio: lsetfilecon
Installing: openldap-servers ######################### [2/3]
error: unpacking of archive failed on file /etc/openldap/schema: cpio: lsetfilecon
Cleanup : openldap ######################### [3/3]

Installed: openldap-servers.x86_64 0:2.2.13-12.el4_8.4
Dependency Updated: openldap.x86_64 0:2.2.13-12.el4_8.4
Complete!

After this error, the package is not installed in the container

I know it has to do with selinux, so I tried disabling it to no avail… I wrote messages to the images authors and even asked at IRC, but I got no answer. I can run centos 5 images without errors!

Any hints?