Docker Community Forums

Share and learn in the Docker community.

Different memory consumption (host x docker)

I’m having a weird problem due to totally different memory consumption profiles for the same scripts (python) running on the host machine (eg my Mac laptop) and on a docker instance. This way the script that used to run ok on my laptop keeps being killed by the OS when running on the docker image.
The memory consumption for both cases are below (look at the peak of memory in each case).
Any guesses why this is happening?