The command that I run is
docker run --rm --cpuset-cpus="0-3" --memory="8g" -v ~/IdeaProjects:/sources --name dsetup -it harit/akka-dev-setup:1.0
When I do htop
inside my container I see that it still uses 2g
I am sure, I am wrong, but not sure where ;-)