Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

320
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda