podman fails to build container image, if any of the package tries to replace /etc/hosts in Red Hat Enterprise Linux 8?
Issue
- podman fails to build container image, if any of the package tries to replace /etc/hosts in Red Hat Enterprise Linux ?
Dockerfile
From docker.io/centos:7.2.1511
RUN yum -y update setup
CMD ["tail","-f","/dev/null"]
- podman build fails with the following message
Running transaction
Updating : setup-2.8.71-10.el7.noarch 1/2
Error unpacking rpm package setup-2.8.71-10.el7.noarch
warning: /etc/group created as /etc/group.rpmnew
error: unpacking of archive failed on file /etc/hosts: cpio: rename
Verifying : setup-2.8.71-10.el7.noarch 1/2
setup-2.8.71-6.el7.noarch was supposed to be removed but is not!
Verifying : setup-2.8.71-6.el7.noarch 2/2
Failed:
setup.noarch 0:2.8.71-6.el7 setup.noarch 0:2.8.71-10.el7
Complete!
error building at step {Env:[PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin] Command:run Args:[yum -y update setup] Flags:[] Attrs:map[] Message:RUN yum -y update setup Original:RUN yum -y update setup}: error while running runtime: exit status 1
Environment
- Red Hat Enterprise Linux 8
- podman-1.0.0-1.git82e8011.module+el8+2696+e59f0461.x86_64
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.