Need help in understanding how memory utilization is calculated while running a container.
say we have a container that is based of Ubuntu 18.04, which we are running inside another Ubuntu 18.04, rather same OS. with following options -
docker run -it -p 8080:8080 --cpus 2 --memory 2048m
Now the question here is, the same process when we run in our local machine with containers, it works perfectly fine with out OOM.. however, the very moment we put the same container and process in google cloud run, the container goes Out Of memory. So the question here is
- How is memory usage calculated on google cloud run?
- Do we get any advantage if we run the same guest OS on same host OS?
and is there a way we can tackle this issue by changing our system to any other platform while running on cloudrun?