I am trying to build this image: docker-images/OracleDatabase at main · oracle/docker-images · GitHub on Docker for mac 1.12.1-rc1-beta23 , but the build process fail because of the swap space memory is not enough for the oracle xe installation, so I want to know if its possible change the swap on hyperkit vm .The error message:
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 964 MB
of swap space. Configure more swap space on the system and retry the
installation.
For me the solution did not work for docker toolbox on Mac OS Sierra.
Using the proposed solution I got rid of the swap space issue but got into the No space left on device I didn’t managed to fix.
For me the only way I managed to fix the issue was to increase the memory of the VBox to 8GB (as per the suggestion offered at Unable to create Oracle Image · Issue #2 · sciabarra/sites12c-docker · GitHub )
docker-machine stop dev
VBoxManage modifyvm dev --memory 8192
docker-machine start dev
Maybe I did something wrong during my attempt to fix the problem with the your proposal, taken into account I had to adapt it a bit (I used the docker-machine ssh dev instead of screen … command)
Then, if I retry to build my image I get the same error about the swap size:
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 964 MB
of swap space. Configure more swap space on the system and retry the
installation.
@nicolimo86 after execute this command: echo "/var/swap.file swap swap defaults 0 0" >> /etc/fstab
Execute another command: swapon -a
To know if the swap size was increased ,type swapon and will show this output:
/dev/vda2 partition 964.8M 0B -1
/var/swap.file file 1.9G 0B -2```
You can shrink again your docker host ram to the previous value.
-a Start swapping on all swap devices
-d[POL] Discard blocks at swapon (POL=once),
as freed (POL=pages), or both (POL omitted)
-e Silently skip devices that do not exist
-p PRI Set swap device priority