My Oracle Support Banner

Docker: Yum rpmdb Corruption in Container (Doc ID 2481513.1)

Last updated on SEPTEMBER 16, 2020

Applies to:

Linux OS - Version Oracle Linux 7.4 and later
Linux x86-64

Symptoms

When trying to create a container from an image, yum fails to update the rpm db.

Steps to reproduce:

  1. Run docker Build with a Dockerfile having more than one (1) yum instruction in it


ERROR:

Step 17/18 : RUN /usr/bin/yum update -y && yum clean all && rm -rf /var/cache/yum
---> Running in e53c587b0995
rpmdb: unable to join the environment
error: db3 error(11) from dbenv->open: Resource temporarily unavailable
error: cannot open Packages index using db3 - Resource temporarily unavailable (11)
error: cannot open Packages database in /var/lib/rpm
/bin/sh: line 1: 6 Segmentation fault (core dumped) /usr/bin/yum update -y
The command '/bin/sh -c /usr/bin/yum update -y && yum clean all && rm -rf /var/cache/yum' returned a non-zero code: 139
make: *** [build] Error 139


Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.