Memory Limit and CPU Limit in Docker Container
I try this command this my docker host which is working
docker run -it -d -m 100M --cpuset-cpus='0' --cpus=1 --cpu-shares=256 --name testing ubuntu /bin/bash
UPDATE
This is the answer that works: https://stackoverflow.com/a/41827812/3209177
I have just found this answer:
Limit memory on a docker container doesn't work
I am going to try that and come back with my observation.