Recently upgraded to Fedora 31 and I'm running Docker-CE-19.03.5.
Everything is working good till it I hit
Code:
RUN rpm -ivvvvhpU /source/jdk-8u211-linux-x64.rpm;
It runs then hangs at here for several minutes:
Code:
#9 8.061 D: opening db index /var/lib/rpm/Sha1header create mode=0x42
#9 8.061 D: adding "80c1cc8ec04e50a721b2ea24153e98609cd9f280" to Sha1header index.
#9 8.161 D: opening db index /var/lib/rpm/Filedigests create mode=0x42
#9 8.161 D: adding 1809 entries to Filedigests index.
#9 8.317 D: install: %post(jdk1.8-2000:1.8.0_211-fcs.x86_64) scriptlet start
#9 8.318 D: install: %post(jdk1.8-2000:1.8.0_211-fcs.x86_64) execv(/bin/sh) pid 13
...
#9 265.1 + '[' -z '' ']'
#9 265.1 + umask 022
#9 265.1 + '[' -z '' ']'
#9 265.1 + GNOMEDIR=/usr
What I've tried and discovered.
1. tried completely clearing the /var/lib/docker folder.
2. tried a Fedora 29 install and rpm is working fast for the same packages, it's only the CentOS 6, Oracle Linux 6/7 variants which have a problem right now. (that I've tested)
3. this happens for any RPM package with a %post call. Package which don't have a post script or call run fast.
4. tested drive IO and it's idle when waiting.
5. tried file write test in the container and it's fast
6. RPM/YUM sits at 100% CPU usage when this is running so it's doing a lot of something.
I think the question I need answered is what is %post doing before it runs that could be causing a problem.