Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

321
Views
building oracle docker image on mac os x fails with "This system does not meet the minimum requirements for swap space."

I am using Docker Community Edition Version 17.03.0-ce-mac2 (15654) on OS X.

I am using these (official) oracle docker files

I am using oracle-xe-11.2.0-1.0.x86_64.rpm.zip as my installation binary.

When I run

:dockerfiles $ pwd
.../oracle/docker-images/OracleDatabase/dockerfiles

:dockerfiles $ ./buildDockerImage.sh -v 11.2.0.2 -x

I get this error:

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
Removing intermediate container 86bb92ebf0e5

This worked last week. I can't recall if I did anything different back then.

What do I need to do to fix?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

The issue is that the virtual machine underpinning docker on os x has swap set to 1G. When I found "ramonpires" answer in this, it made it clear to me that I needed to add swap to that underlying vm. The instructions in that post got me most of the way there, but I had to add one final step to get it to work. So, full solution:

screen ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty
username:root
password:[empty]
close session:Ctrl+a d

free -m

This tells you how much swap is available. Check it is less than 2G.

dd if=/dev/zero of=/var/swap.file count=2000000 bs=1024
chmod go= /var/swap.file
mkswap /var/swap.file
echo "/var/swap.file swap swap defaults 0 0" >> /etc/fstab
swapon -a

The last line was missing from the linked to solution. Now run

free -m

To ensure you have more than 2G swap, and then re-run

:dockerfiles $ ./buildDockerImage.sh -v 11.2.0.2 -x
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!