Cypress test failing with "out of memory" error in docker

  aws-fargate, cypress, docker

I have cypress tests running without any issues in local.
But when I run them in a docker container, it is failing with “out of memory” error. logs –
I saw a suggestion in this issue(cypress-io/cypress#350) to use --ipc=host but the issue keeps occurring.
During the tests are running, I see RAM usage of docker container is around 1.6GB Max, but the VM on which the docker is running has around 6GB free.
I ultimately want to run these tests in AWS Fargate, any idea what is the equivalent of --ipc=host in fargate?
Any help is much appreciated. Thank you.

Source: StackOverflow