Open BarDweller opened 4 years ago
We are also extending UBI images using buildah/podman and we have no issues with it. This issue is from 2020 though so a lot of version iterations have passed. Could have been an issue with the host system (permissions) or SELinux (since it happens during the package install step).
This is an odd one, if I extend a liberty ubi image (I've tried various, but for sure,
openliberty/open-liberty:kernel-java8-openj9-ubi
) and try to use yum to install additional packages, it fails if the build is using podman.RedHat installs podman instead of docker on rhel, and it's not too simple to put docker back instead.
If I code a simple Dockerfile that just extends
adoptopenjdk/openjdk8-openj9:ubi
and uses yum install, this works with both podman, and docker. Same if I extend the RHregistry.access.redhat.com/ubi8/ubi
image. There's something particular about the liberty images that's causing the failure.I'd lean towards it being a podman bug, but @arthurdm suggested it get raised here first for an investigate to figure if liberty needs to raise this against podman.
Dockerfile
Output
Workaround: adding
RUN rm -rf /var/cache/dnf
before the execution of yum install (a guess based on the error above) clears the issue, although that's probably not a great idea in the long run, it's enough to at least let me keep playing with the image.