I have Windows 7 and I am building an image which uses centos:6 as a base image, and I was now trying to install Oracle XE on it.
The error that I get is
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 1992 MB of swap space. This system has 1154 MB
of swap space. Configure more swap space on the system and retry the
installation.
I read a few solutions which apply to increasing the swap size on on CentOS itself, but mkswap is not available on the base image and from the other blogs I have read as well it seems that the swap file is actually controlled by the host.
On my Windows machine, I checked the Virtual Memory is 3350 MB. Not really sure if this is linked…
Can anybody please help me find a solution for this.
Hi, even though you are running Windows 7 your docker daemon might be running on a Linux VM right? So its the swap space of the VM that needs to be increased so that the containers gets that. It is not same as virtual memory on windows.
The same topic was discussed before, hope this will help you. Docker & swap space
buy then after running the ‘docker build’ command on my Dockerfile, it freezes at the step where Oracle XE installation starts and the Virtual Box changes the status of the VM to GURU_MEDITATION…
00:08:29.408150 Console: VM runtime error: fatal=false, errorID=HostMemoryLow message=“Unable to allocate and lock memory. The virtual machine will be paused. Please close applications to free up memory or close the VM”
00:08:30.657286 Changing the VM state from ‘RUNNING’ to ‘GURU_MEDITATION’
I suppose I need to buy a more powerful laptop or is there something else I can try?
How much RAM does your laptop have? Looks like you have allocated more RAM than that can be safely allocated to the VM. To increase the SWAP you can try to add a swapfile and mount it as swap on the docker host, which will not utilise your RAM.