inflating: Disk1/oracle-xe-11.2.0-1.0.x86_64.rpm
sysctl: setting key "kernel.sem": Read-only file system
/var/tmp/rpm-tmp.Fx90Tx: line 257: [: 18446744073692774399: integer expression expected
/var/tmp/rpm-tmp.Fx90Tx: line 271: [: 18446744073692774399: integer expression expected
Executing post-install steps...
You must run '/etc/init.d/oracle-xe configure' as the root user to configure the database.
Error: The container doesn't have enough memory allocated.
A database XE container needs at least 1 GB of shared memory (/dev/shm).
You currently only have 64 MB allocated to the container.
There's some issue with your local environment and Docker installation. My guess is that it doesn't have sufficient disk space and/or RAM memory.
@wuxian1987, please post the entire output of the build. I think your issue is that you haven't specified the --shm-size=1g parameter when you started the container. Please have a look at the ReadMe for further details.
Is the end user supposed to send additional commands to docker during the 'sh buildDockerImage.sh -x -v 11.2.0.2' command using the -o option? If so, those are not specified clearly in the ReadMe. There is information for running the container, but it suggests adding --shm-size=1g. However, these commands do not seem to be useful during the creation of the initial image.
The command:
sh buildDockerImage.sh -x -v 11.2.0.2 -o --shm-size=1g
results in the following while the image is being built.
Loaded plugins: ovl
Cleaning repos: ol7_UEKR4 ol7_latest
Cleaning up everything
Archive: oracle-xe-11.2.0-1.0.x86_64.rpm.zip
creating: Disk1/
creating: Disk1/upgrade/
inflating: Disk1/upgrade/gen_inst.sql
creating: Disk1/response/
inflating: Disk1/response/xe.rsp
inflating: Disk1/oracle-xe-11.2.0-1.0.x86_64.rpm
This system does not meet the minimum requirements for swap space. Based on
the amount of physical memory available on the system, Oracle Database 11g
Express Edition requires 2048 MB of swap space. This system has 857 MB
of swap space. Configure more swap space on the system and retry the
installation.
error: %pre(oracle-xe-11.2.0-1.0.x86_64) scriptlet failed, exit status 1
error: oracle-xe-11.2.0-1.0.x86_64: install failed
No, the user is not supposed to provide any Docker options unless he knows what he is doing.
The buildDockerImage.sh adds necessary options for the builds, like XE, automatically.
I receive the same error I posted above if I provide no options to the buildDockerImage.sh scripts beyond the -x and -v options.
@Gerromie, the error above states the following:
This system does not meet the minimum requirements for swap space. Based on
the amount of physical memory available on the system, Oracle Database 11g
Express Edition requires 2048 MB of swap space. This system has 857 MB
of swap space. Configure more swap space on the system and retry the
installation.
It means that the container does not have enough swap space configured. It only has 857MB but you need 2GB in order to build that image. Unfortunately, as of today there is no way with Docker to control swap space inside the container. The only solution is to make sure that your system has enough swap configured in the first place. There are already some threads around that on various forums like that one: Docker & swap space
Also, please note that your error is different from the original error above, which is about not having enough shared memory provided.
@gvenzl I know that you said this was the wrong issue to make my comment in, but since I have found that the following solution during the buildDockerImage.sh step resolves my issue, I thought I would leave the info here in case you would like to add it to the documents.
sh buildDockerImage.sh -x -v 11.2.0.2 -o "--memory=1g --memory-swap=2g"
Thanks a lot @Gerromie, I was not aware that Docker now supports the --memory-swap option. Will test and add it to the build script. Do you think that --memory is required as well (--shm-size is already automatically added)?
Docker seems to require that --memory is provided when --memory-swap is used.
what is required to get this to build on a Windows system using docker ?
C:\DEV\docker-images\OracleDatabase\dockerfiles\11.2.0.2>docker build --memory=2g --memory-swap=2g --shm-size=2g -t oracle/express .
Sending build context to Docker daemon 315.9MB
Step 1/9 : FROM oraclelinux:7-slim
---> a6e9e9e5ddc1
Step 2/9 : MAINTAINER Gerald Venzl <[email protected]>
---> Using cache
---> 491a7c699684
Step 3/9 : ENV ORACLE_BASE /u01/app/oracle ORACLE_HOME /u01/app/oracle/product/11.2.0/xe ORACLE_SID XE INSTALL_FILE_1 "oracle-xe-11.2.0-1.0.x86_64.rpm.zip" INSTALL_DIR "$HOME/install" CONFIG_RSP "xe.rsp" RUN_FILE "runOracle.sh" PWD_FILE "setPassword.sh"
---> Using cache
---> 134ef0c0b3ca
Step 4/9 : ENV PATH $ORACLE_HOME/bin:$PATH
---> Using cache
---> 779c74600409
Step 5/9 : COPY $INSTALL_FILE_1 $CONFIG_RSP $RUN_FILE $PWD_FILE $INSTALL_DIR/
---> Using cache
---> 3cdd3867354f
Step 6/9 : RUN yum -y install unzip libaio bc initscripts net-tools openssl && yum clean all && cd $INSTALL_DIR && unzip $INSTALL_FILE_1 && rm $INSTALL_FILE_1 && rpm -i Disk1/*.rpm && mkdir -p $ORACLE_BASE/scripts/setup && mkdir $ORACLE_BASE/scripts/startup && ln -s $ORACLE_BASE/scripts /docker-entrypoint-initdb.d && mkdir $ORACLE_BASE/oradata && chown -R oracle:dba $ORACLE_BASE && mv $INSTALL_DIR/$CONFIG_RSP $ORACLE_BASE/ && mv $INSTALL_DIR/$RUN_FILE $ORACLE_BASE/ && mv $INSTALL_DIR/$PWD_FILE $ORACLE_BASE/ && ln -s $ORACLE_BASE/$PWD_FILE / && cd $HOME && rm -rf $INSTALL_DIR && chmod ug+x $ORACLE_BASE/*.sh
---> Running in 40b0cf4ae6c2
Loaded plugins: ovl
Resolving Dependencies
--> Running transaction check
---> Package bc.x86_64 0:1.06.95-13.el7 will be installed
---> Package initscripts.x86_64 0:9.49.39-1.0.1.el7 will be installed
--> Processing Dependency: udev >= 125-1 for package: initscripts-9.49.39-1.0.1.el7.x86_64
--> Processing Dependency: sysvinit-tools >= 2.87-5 for package: initscripts-9.49.39-1.0.1.el7.x86_64
--> Processing Dependency: util-linux >= 2.16 for package: initscripts-9.49.39-1.0.1.el7.x86_64
--> Processing Dependency: /sbin/arping for package: initscripts-9.49.39-1.0.1.el7.x86_64
--> Processing Dependency: systemd for package: initscripts-9.49.39-1.0.1.el7.x86_64
--> Processing Dependency: iproute for package: initscripts-9.49.39-1.0.1.el7.x86_64
--> Processing Dependency: hostname for package: initscripts-9.49.39-1.0.1.el7.x86_64
--> Processing Dependency: /sbin/sysctl for package: initscripts-9.49.39-1.0.1.el7.x86_64
--> Processing Dependency: module-init-tools for package: initscripts-9.49.39-1.0.1.el7.x86_64
---> Package libaio.x86_64 0:0.3.109-13.el7 will be installed
---> Package net-tools.x86_64 0:2.0-0.22.20131004git.el7 will be installed
---> Package openssl.x86_64 1:1.0.2k-8.0.1.el7 will be installed
--> Processing Dependency: make for package: 1:openssl-1.0.2k-8.0.1.el7.x86_64
---> Package unzip.x86_64 0:6.0-16.el7 will be installed
--> Running transaction check
---> Package hostname.x86_64 0:3.13-3.el7 will be installed
---> Package iproute.x86_64 0:3.10.0-87.0.1.el7 will be installed
--> Processing Dependency: libmnl.so.0(LIBMNL_1.0)(64bit) for package: iproute-3.10.0-87.0.1.el7.x86_64
--> Processing Dependency: libmnl.so.0()(64bit) for package: iproute-3.10.0-87.0.1.el7.x86_64
--> Processing Dependency: libxtables.so.10()(64bit) for package: iproute-3.10.0-87.0.1.el7.x86_64
---> Package iputils.x86_64 0:20160308-10.el7 will be installed
---> Package kmod.x86_64 0:20-15.0.1.el7_4.2 will be installed
--> Processing Dependency: /usr/bin/gzip for package: kmod-20-15.0.1.el7_4.2.x86_64
--> Processing Dependency: /usr/bin/xz for package: kmod-20-15.0.1.el7_4.2.x86_64
--> Processing Dependency: /usr/bin/nm for package: kmod-20-15.0.1.el7_4.2.x86_64
--> Processing Dependency: dracut for package: kmod-20-15.0.1.el7_4.2.x86_64
---> Package make.x86_64 1:3.82-23.el7 will be installed
---> Package procps-ng.x86_64 0:3.3.10-16.el7 will be installed
--> Processing Dependency: libsystemd.so.0(LIBSYSTEMD_209)(64bit) for package: procps-ng-3.3.10-16.el7.x86_64
--> Processing Dependency: libsystemd.so.0()(64bit) for package: procps-ng-3.3.10-16.el7.x86_64
---> Package systemd.x86_64 0:219-42.0.2.el7_4.1 will be installed
--> Processing Dependency: libdw.so.1(ELFUTILS_0.158)(64bit) for package: systemd-219-42.0.2.el7_4.1.x86_64
--> Processing Dependency: libdw.so.1(ELFUTILS_0.130)(64bit) for package: systemd-219-42.0.2.el7_4.1.x86_64
--> Processing Dependency: libkmod.so.2(LIBKMOD_5)(64bit) for package: systemd-219-42.0.2.el7_4.1.x86_64
--> Processing Dependency: dbus for package: systemd-219-42.0.2.el7_4.1.x86_64
--> Processing Dependency: acl for package: systemd-219-42.0.2.el7_4.1.x86_64
--> Processing Dependency: libpam.so.0(LIBPAM_1.0)(64bit) for package: systemd-219-42.0.2.el7_4.1.x86_64
--> Processing Dependency: libdw.so.1(ELFUTILS_0.122)(64bit) for package: systemd-219-42.0.2.el7_4.1.x86_64
--> Processing Dependency: libcryptsetup.so.4(CRYPTSETUP_1.0)(64bit) for package: systemd-219-42.0.2.el7_4.1.x86_64
--> Processing Dependency: libqrencode.so.3()(64bit) for package: systemd-219-42.0.2.el7_4.1.x86_64
--> Processing Dependency: libdw.so.1()(64bit) for package: systemd-219-42.0.2.el7_4.1.x86_64
--> Processing Dependency: libpam.so.0()(64bit) for package: systemd-219-42.0.2.el7_4.1.x86_64
--> Processing Dependency: libkmod.so.2()(64bit) for package: systemd-219-42.0.2.el7_4.1.x86_64
--> Processing Dependency: libcryptsetup.so.4()(64bit) for package: systemd-219-42.0.2.el7_4.1.x86_64
---> Package sysvinit-tools.x86_64 0:2.88-14.dsf.el7 will be installed
---> Package util-linux.x86_64 0:2.23.2-43.el7 will be installed
--> Processing Dependency: libutempter.so.0(UTEMPTER_1.1)(64bit) for package: util-linux-2.23.2-43.el7.x86_64
--> Processing Dependency: libutempter.so.0()(64bit) for package: util-linux-2.23.2-43.el7.x86_64
--> Processing Dependency: libuser.so.1()(64bit) for package: util-linux-2.23.2-43.el7.x86_64
--> Running transaction check
---> Package acl.x86_64 0:2.2.51-12.el7 will be installed
---> Package binutils.x86_64 0:2.25.1-32.base.el7_4.1 will be installed
---> Package cryptsetup-libs.x86_64 0:1.7.4-3.el7 will be installed
--> Processing Dependency: libdevmapper.so.1.02(Base)(64bit) for package: cryptsetup-libs-1.7.4-3.el7.x86_64
--> Processing Dependency: libdevmapper.so.1.02(DM_1_02_97)(64bit) for package: cryptsetup-libs-1.7.4-3.el7.x86_64
--> Processing Dependency: libdevmapper.so.1.02()(64bit) for package: cryptsetup-libs-1.7.4-3.el7.x86_64
---> Package dbus.x86_64 1:1.6.12-17.0.1.el7 will be installed
--> Processing Dependency: dbus-libs(x86-64) = 1:1.6.12-17.0.1.el7 for package: 1:dbus-1.6.12-17.0.1.el7.x86_64
--> Processing Dependency: libdbus-1.so.3()(64bit) for package: 1:dbus-1.6.12-17.0.1.el7.x86_64
---> Package dracut.x86_64 0:033-502.0.1.el7 will be installed
--> Processing Dependency: /usr/bin/pkg-config for package: dracut-033-502.0.1.el7.x86_64
--> Processing Dependency: kpartx for package: dracut-033-502.0.1.el7.x86_64
--> Processing Dependency: tar for package: dracut-033-502.0.1.el7.x86_64
--> Processing Dependency: hardlink for package: dracut-033-502.0.1.el7.x86_64
---> Package elfutils-libs.x86_64 0:0.168-8.el7 will be installed
--> Processing Dependency: default-yama-scope for package: elfutils-libs-0.168-8.el7.x86_64
---> Package gzip.x86_64 0:1.5-9.el7 will be installed
---> Package iptables.x86_64 0:1.4.21-18.el7 will be installed
--> Processing Dependency: libnetfilter_conntrack.so.3()(64bit) for package: iptables-1.4.21-18.el7.x86_64
--> Processing Dependency: libnfnetlink.so.0()(64bit) for package: iptables-1.4.21-18.el7.x86_64
---> Package kmod-libs.x86_64 0:20-15.0.1.el7_4.2 will be installed
---> Package libmnl.x86_64 0:1.0.3-7.el7 will be installed
---> Package libuser.x86_64 0:0.60-7.el7_1 will be installed
---> Package libutempter.x86_64 0:1.1.6-4.el7 will be installed
---> Package pam.x86_64 0:1.1.8-18.el7 will be installed
--> Processing Dependency: libpwquality >= 0.9.9 for package: pam-1.1.8-18.el7.x86_64
--> Processing Dependency: cracklib-dicts >= 2.8 for package: pam-1.1.8-18.el7.x86_64
--> Processing Dependency: libcrack.so.2()(64bit) for package: pam-1.1.8-18.el7.x86_64
---> Package qrencode-libs.x86_64 0:3.4.1-3.el7 will be installed
---> Package systemd-libs.x86_64 0:219-42.0.2.el7_4.1 will be installed
---> Package xz.x86_64 0:5.2.2-1.el7 will be installed
--> Running transaction check
---> Package cracklib.x86_64 0:2.9.0-11.el7 will be installed
---> Package cracklib-dicts.x86_64 0:2.9.0-11.el7 will be installed
---> Package dbus-libs.x86_64 1:1.6.12-17.0.1.el7 will be installed
---> Package device-mapper-libs.x86_64 7:1.02.140-8.0.1.el7 will be installed
--> Processing Dependency: device-mapper = 7:1.02.140-8.0.1.el7 for package: 7:device-mapper-libs-1.02.140-8.0.1.el7.x86_64
---> Package elfutils-default-yama-scope.noarch 0:0.168-8.el7 will be installed
---> Package hardlink.x86_64 1:1.0-19.el7 will be installed
---> Package kpartx.x86_64 0:0.4.9-111.el7 will be installed
---> Package libnetfilter_conntrack.x86_64 0:1.0.6-1.el7_3 will be installed
---> Package libnfnetlink.x86_64 0:1.0.1-4.el7 will be installed
---> Package libpwquality.x86_64 0:1.2.3-4.el7 will be installed
---> Package pkgconfig.x86_64 1:0.27.1-4.el7 will be installed
---> Package tar.x86_64 2:1.26-32.el7 will be installed
--> Running transaction check
---> Package device-mapper.x86_64 7:1.02.140-8.0.1.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
bc x86_64 1.06.95-13.el7 ol7_latest 114 k
initscripts x86_64 9.49.39-1.0.1.el7 ol7_latest 435 k
libaio x86_64 0.3.109-13.el7 ol7_latest 24 k
net-tools x86_64 2.0-0.22.20131004git.el7 ol7_latest 305 k
openssl x86_64 1:1.0.2k-8.0.1.el7 ol7_latest 491 k
unzip x86_64 6.0-16.el7 ol7_latest 169 k
Installing for dependencies:
acl x86_64 2.2.51-12.el7 ol7_latest 80 k
binutils x86_64 2.25.1-32.base.el7_4.1 ol7_latest 5.4 M
cracklib x86_64 2.9.0-11.el7 ol7_latest 79 k
cracklib-dicts x86_64 2.9.0-11.el7 ol7_latest 3.6 M
cryptsetup-libs x86_64 1.7.4-3.el7 ol7_latest 222 k
dbus x86_64 1:1.6.12-17.0.1.el7 ol7_latest 307 k
dbus-libs x86_64 1:1.6.12-17.0.1.el7 ol7_latest 151 k
device-mapper x86_64 7:1.02.140-8.0.1.el7 ol7_latest 280 k
device-mapper-libs x86_64 7:1.02.140-8.0.1.el7 ol7_latest 311 k
dracut x86_64 033-502.0.1.el7 ol7_latest 322 k
elfutils-default-yama-scope noarch 0.168-8.el7 ol7_latest 30 k
elfutils-libs x86_64 0.168-8.el7 ol7_latest 263 k
gzip x86_64 1.5-9.el7 ol7_latest 129 k
hardlink x86_64 1:1.0-19.el7 ol7_latest 14 k
hostname x86_64 3.13-3.el7 ol7_latest 16 k
iproute x86_64 3.10.0-87.0.1.el7 ol7_latest 651 k
iptables x86_64 1.4.21-18.el7 ol7_latest 427 k
iputils x86_64 20160308-10.el7 ol7_latest 147 k
kmod x86_64 20-15.0.1.el7_4.2 ol7_latest 119 k
kmod-libs x86_64 20-15.0.1.el7_4.2 ol7_latest 49 k
kpartx x86_64 0.4.9-111.el7 ol7_latest 72 k
libmnl x86_64 1.0.3-7.el7 ol7_latest 22 k
libnetfilter_conntrack x86_64 1.0.6-1.el7_3 ol7_latest 55 k
libnfnetlink x86_64 1.0.1-4.el7 ol7_latest 25 k
libpwquality x86_64 1.2.3-4.el7 ol7_latest 84 k
libuser x86_64 0.60-7.el7_1 ol7_latest 397 k
libutempter x86_64 1.1.6-4.el7 ol7_latest 24 k
make x86_64 1:3.82-23.el7 ol7_latest 420 k
pam x86_64 1.1.8-18.el7 ol7_latest 715 k
pkgconfig x86_64 1:0.27.1-4.el7 ol7_latest 53 k
procps-ng x86_64 3.3.10-16.el7 ol7_latest 289 k
qrencode-libs x86_64 3.4.1-3.el7 ol7_latest 49 k
systemd x86_64 219-42.0.2.el7_4.1 ol7_latest 5.2 M
systemd-libs x86_64 219-42.0.2.el7_4.1 ol7_latest 375 k
sysvinit-tools x86_64 2.88-14.dsf.el7 ol7_latest 62 k
tar x86_64 2:1.26-32.el7 ol7_latest 844 k
util-linux x86_64 2.23.2-43.el7 ol7_latest 2.0 M
xz x86_64 5.2.2-1.el7 ol7_latest 228 k
Transaction Summary
================================================================================
Install 6 Packages (+38 Dependent packages)
Total download size: 25 M
Installed size: 84 M
Downloading packages:
--------------------------------------------------------------------------------
Total 2.5 MB/s | 25 MB 00:09
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : gzip-1.5-9.el7.x86_64 1/44
Installing : cracklib-2.9.0-11.el7.x86_64 2/44
Installing : cracklib-dicts-2.9.0-11.el7.x86_64 3/44
Installing : pam-1.1.8-18.el7.x86_64 4/44
Installing : libpwquality-1.2.3-4.el7.x86_64 5/44
Installing : libnfnetlink-1.0.1-4.el7.x86_64 6/44
Installing : xz-5.2.2-1.el7.x86_64 7/44
Installing : libmnl-1.0.3-7.el7.x86_64 8/44
Installing : libnetfilter_conntrack-1.0.6-1.el7_3.x86_64 9/44
Installing : iptables-1.4.21-18.el7.x86_64 10/44
Installing : iproute-3.10.0-87.0.1.el7.x86_64 11/44
Installing : libuser-0.60-7.el7_1.x86_64 12/44
Installing : libutempter-1.1.6-4.el7.x86_64 13/44
Installing : 2:tar-1.26-32.el7.x86_64 14/44
Installing : 1:make-3.82-23.el7.x86_64 15/44
Installing : acl-2.2.51-12.el7.x86_64 16/44
Installing : qrencode-libs-3.4.1-3.el7.x86_64 17/44
Installing : kmod-libs-20-15.0.1.el7_4.2.x86_64 18/44
Installing : 1:dbus-libs-1.6.12-17.0.1.el7.x86_64 19/44
Installing : 1:hardlink-1.0-19.el7.x86_64 20/44
Installing : sysvinit-tools-2.88-14.dsf.el7.x86_64 21/44
Installing : binutils-2.25.1-32.base.el7_4.1.x86_64 22/44
Installing : hostname-3.13-3.el7.x86_64 23/44
Installing : elfutils-default-yama-scope-0.168-8.el7.noarch 24/44
Installing : elfutils-libs-0.168-8.el7.x86_64 25/44
Installing : systemd-libs-219-42.0.2.el7_4.1.x86_64 26/44
Installing : util-linux-2.23.2-43.el7.x86_64 27/44
Installing : procps-ng-3.3.10-16.el7.x86_64 28/44
Installing : 1:pkgconfig-0.27.1-4.el7.x86_64 29/44
Installing : kpartx-0.4.9-111.el7.x86_64 30/44
Installing : 7:device-mapper-1.02.140-8.0.1.el7.x86_64 31/44
Installing : 7:device-mapper-libs-1.02.140-8.0.1.el7.x86_64 32/44
Installing : cryptsetup-libs-1.7.4-3.el7.x86_64 33/44
Installing : dracut-033-502.0.1.el7.x86_64 34/44
Installing : kmod-20-15.0.1.el7_4.2.x86_64 35/44
Installing : systemd-219-42.0.2.el7_4.1.x86_64 36/44
Installing : 1:dbus-1.6.12-17.0.1.el7.x86_64 37/44
Installing : iputils-20160308-10.el7.x86_64 38/44
Installing : initscripts-9.49.39-1.0.1.el7.x86_64 39/44
Installing : net-tools-2.0-0.22.20131004git.el7.x86_64 40/44
Installing : 1:openssl-1.0.2k-8.0.1.el7.x86_64 41/44
Installing : libaio-0.3.109-13.el7.x86_64 42/44
Installing : bc-1.06.95-13.el7.x86_64 43/44
Installing : unzip-6.0-16.el7.x86_64 44/44
Verifying : gzip-1.5-9.el7.x86_64 1/44
Verifying : systemd-libs-219-42.0.2.el7_4.1.x86_64 2/44
Verifying : libmnl-1.0.3-7.el7.x86_64 3/44
Verifying : 1:pkgconfig-0.27.1-4.el7.x86_64 4/44
Verifying : net-tools-2.0-0.22.20131004git.el7.x86_64 5/44
Verifying : systemd-219-42.0.2.el7_4.1.x86_64 6/44
Verifying : 7:device-mapper-libs-1.02.140-8.0.1.el7.x86_64 7/44
Verifying : elfutils-default-yama-scope-0.168-8.el7.noarch 8/44
Verifying : hostname-3.13-3.el7.x86_64 9/44
Verifying : libnetfilter_conntrack-1.0.6-1.el7_3.x86_64 10/44
Verifying : binutils-2.25.1-32.base.el7_4.1.x86_64 11/44
Verifying : sysvinit-tools-2.88-14.dsf.el7.x86_64 12/44
Verifying : 1:hardlink-1.0-19.el7.x86_64 13/44
Verifying : unzip-6.0-16.el7.x86_64 14/44
Verifying : 1:dbus-libs-1.6.12-17.0.1.el7.x86_64 15/44
Verifying : kmod-20-15.0.1.el7_4.2.x86_64 16/44
Verifying : cryptsetup-libs-1.7.4-3.el7.x86_64 17/44
Verifying : kmod-libs-20-15.0.1.el7_4.2.x86_64 18/44
Verifying : qrencode-libs-3.4.1-3.el7.x86_64 19/44
Verifying : iptables-1.4.21-18.el7.x86_64 20/44
Verifying : bc-1.06.95-13.el7.x86_64 21/44
Verifying : libaio-0.3.109-13.el7.x86_64 22/44
Verifying : pam-1.1.8-18.el7.x86_64 23/44
Verifying : acl-2.2.51-12.el7.x86_64 24/44
Verifying : libpwquality-1.2.3-4.el7.x86_64 25/44
Verifying : elfutils-libs-0.168-8.el7.x86_64 26/44
Verifying : iputils-20160308-10.el7.x86_64 27/44
Verifying : dracut-033-502.0.1.el7.x86_64 28/44
Verifying : 7:device-mapper-1.02.140-8.0.1.el7.x86_64 29/44
Verifying : initscripts-9.49.39-1.0.1.el7.x86_64 30/44
Verifying : xz-5.2.2-1.el7.x86_64 31/44
Verifying : libnfnetlink-1.0.1-4.el7.x86_64 32/44
Verifying : 1:make-3.82-23.el7.x86_64 33/44
Verifying : 1:openssl-1.0.2k-8.0.1.el7.x86_64 34/44
Verifying : libuser-0.60-7.el7_1.x86_64 35/44
Verifying : procps-ng-3.3.10-16.el7.x86_64 36/44
Verifying : iproute-3.10.0-87.0.1.el7.x86_64 37/44
Verifying : 1:dbus-1.6.12-17.0.1.el7.x86_64 38/44
Verifying : cracklib-dicts-2.9.0-11.el7.x86_64 39/44
Verifying : kpartx-0.4.9-111.el7.x86_64 40/44
Verifying : 2:tar-1.26-32.el7.x86_64 41/44
Verifying : cracklib-2.9.0-11.el7.x86_64 42/44
Verifying : util-linux-2.23.2-43.el7.x86_64 43/44
Verifying : libutempter-1.1.6-4.el7.x86_64 44/44
Installed:
bc.x86_64 0:1.06.95-13.el7 initscripts.x86_64 0:9.49.39-1.0.1.el7
libaio.x86_64 0:0.3.109-13.el7 net-tools.x86_64 0:2.0-0.22.20131004git.el7
openssl.x86_64 1:1.0.2k-8.0.1.el7 unzip.x86_64 0:6.0-16.el7
Dependency Installed:
acl.x86_64 0:2.2.51-12.el7
binutils.x86_64 0:2.25.1-32.base.el7_4.1
cracklib.x86_64 0:2.9.0-11.el7
cracklib-dicts.x86_64 0:2.9.0-11.el7
cryptsetup-libs.x86_64 0:1.7.4-3.el7
dbus.x86_64 1:1.6.12-17.0.1.el7
dbus-libs.x86_64 1:1.6.12-17.0.1.el7
device-mapper.x86_64 7:1.02.140-8.0.1.el7
device-mapper-libs.x86_64 7:1.02.140-8.0.1.el7
dracut.x86_64 0:033-502.0.1.el7
elfutils-default-yama-scope.noarch 0:0.168-8.el7
elfutils-libs.x86_64 0:0.168-8.el7
gzip.x86_64 0:1.5-9.el7
hardlink.x86_64 1:1.0-19.el7
hostname.x86_64 0:3.13-3.el7
iproute.x86_64 0:3.10.0-87.0.1.el7
iptables.x86_64 0:1.4.21-18.el7
iputils.x86_64 0:20160308-10.el7
kmod.x86_64 0:20-15.0.1.el7_4.2
kmod-libs.x86_64 0:20-15.0.1.el7_4.2
kpartx.x86_64 0:0.4.9-111.el7
libmnl.x86_64 0:1.0.3-7.el7
libnetfilter_conntrack.x86_64 0:1.0.6-1.el7_3
libnfnetlink.x86_64 0:1.0.1-4.el7
libpwquality.x86_64 0:1.2.3-4.el7
libuser.x86_64 0:0.60-7.el7_1
libutempter.x86_64 0:1.1.6-4.el7
make.x86_64 1:3.82-23.el7
pam.x86_64 0:1.1.8-18.el7
pkgconfig.x86_64 1:0.27.1-4.el7
procps-ng.x86_64 0:3.3.10-16.el7
qrencode-libs.x86_64 0:3.4.1-3.el7
systemd.x86_64 0:219-42.0.2.el7_4.1
systemd-libs.x86_64 0:219-42.0.2.el7_4.1
sysvinit-tools.x86_64 0:2.88-14.dsf.el7
tar.x86_64 2:1.26-32.el7
util-linux.x86_64 0:2.23.2-43.el7
xz.x86_64 0:5.2.2-1.el7
Complete!
Loaded plugins: ovl
Cleaning repos: ol7_UEKR4 ol7_latest
Cleaning up everything
Maybe you want: rm -rf /var/cache/yum, to also free up space taken by orphaned data from disabled or removed repos
Archive: oracle-xe-11.2.0-1.0.x86_64.rpm.zip
creating: Disk1/
creating: Disk1/upgrade/
inflating: Disk1/upgrade/gen_inst.sql
creating: Disk1/response/
inflating: Disk1/response/xe.rsp
inflating: Disk1/oracle-xe-11.2.0-1.0.x86_64.rpm
This system does not meet the minimum requirements for swap space. Based on
the amount of physical memory available on the system, Oracle Database 11g
Express Edition requires 2048 MB of swap space. This system has 1023 MB
of swap space. Configure more swap space on the system and retry the
installation.
error: %pre(oracle-xe-11.2.0-1.0.x86_64) scriptlet failed, exit status 1
error: oracle-xe-11.2.0-1.0.x86_64: install failed
The command '/bin/sh -c yum -y install unzip libaio bc initscripts net-tools openssl && yum clean all && cd $INSTALL_DIR && unzip $INSTALL_FILE_1 && rm $INSTALL_FILE_1 && rpm -i Disk1/*.rpm && mkdir -p $ORACLE_BASE/scripts/setup && mkdir $ORACLE_BASE/scripts/startup && ln -s $ORACLE_BASE/scripts /docker-entrypoint-initdb.d && mkdir $ORACLE_BASE/oradata && chown -R oracle:dba $ORACLE_BASE && mv $INSTALL_DIR/$CONFIG_RSP $ORACLE_BASE/ && mv $INSTALL_DIR/$RUN_FILE $ORACLE_BASE/ && mv $INSTALL_DIR/$PWD_FILE $ORACLE_BASE/ && ln -s $ORACLE_BASE/$PWD_FILE / && cd $HOME && rm -rf $INSTALL_DIR && chmod ug+x $ORACLE_BASE/*.sh' returned a non-zero code: 1
C:\DEV\docker-images\OracleDatabase\dockerfiles\11.2.0.2>
I have the same problem, I've tried several things like:
./buildDockerImage.sh -x -v 11.2.0.2 -o "--memory=1g --memory-swap=2g"
or
./buildDockerImage.sh -x -v 11.2.0.2 -o --shm-size=2g
but without success :(
@grahamehorner @eyp Using the workaround suggested in PR https://github.com/oracle/docker-images/pull/638 helped for me.
Try passing the --shm-size flag to docker run i.e. docker run --shm-size="2g" -d oracle/database:11.2.0.2-xe
@kmlprtsng that doesn't work. For Windows 10 is needed to apply the patch https://github.com/oracle/docker-images/pull/638, although I've already read that the patch has been applied on trunk.
I have the latest changes from the trunk but still had the same problem so shm-size worked for me. I am on a mac. Hopefully somebody else will find it useful.
@kmlprtsng thanks, that worked for me on Linux (Ubuntu)
docker run --name oracle-xe \
-p 1521:1521 -p 5500:5500 \
-e ORACLE_PWD=mypassword \
--shm-size="2g" \
-v oracle-xe-volumne:/opt/oracle/oradata \
-d oracle/database:11.2.0.2-xe
If you use docker-compose, the trick that worked for me is to use '3.5' version of configuration and then set shm_size: '2gb'. See this.
Closing this issue as various solutions have been provided.
Also 18c XE will no longer perform a swap check altogether.
Most helpful comment
Try passing the
--shm-sizeflag to docker run i.e.docker run --shm-size="2g" -d oracle/database:11.2.0.2-xe