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?

I am having very similar behavior running some C++ code. Did you figure this out?

If You facing any issues from your Canon printer and you finding reliable customer support for Canon. So you are in the right place. We providing technical support for the Canon printer. We have Microsoft certified technician team who is able to solve any problem regarding your Canon printer. Just dial our Canon person printer toll-free number for support 1-888-633-7151
canon printer setup