Installed Docker for Windows 10. I have set the Allocated Docker memory to 4GB. However when building the Oracle XE container it is saying only 1gb of Swap available and 2GB required. Can anyone help please? I have tried --shm-size=2gb on the build command too.
What’s a reproducible set of commands and/or Dockerfile that demonstrates the problem?
Hi Michael,
I was following the XE instructions at https://github.com/oracle/docker-images/tree/master/OracleDatabase I am new to docker and finally I understood that it was my Base Centos Kernel that needed the extra swap adding. This caused problems with the oracle:slim kernel as the mkswap commands are not there. So I have used a base Centos7 kernel now and have got over this problem. However more issues ahead running runOracle.sh related to permissions by the look of it.
Thanks for the reply
Same issue here, following those same instructions. It’s my understanding the swap space being used is that of the host running the container. In this case, that would be the MobyLinuxVM. How can we change the swap space in that VM running in Hyper-V?
I eventually resolved this. Its the Original OracleLinux image that needs
the swap changing. (Why they ship it so small I don’t know)
Ah, ok. So I need to start up an oraclelinux container, go in and add more swap space, then save it back with those changes in the image. And running buildDockerImage.sh will then use that oraclelinux image with the new swap space. Do I have that right?
Yes, I believe you do.
Could you please share, how you increased the swap space in Oracle linux image?
Hi, Cannot really remember. I think I just used a different base Centos
Image.