Limit cpu and memory of all running docker containers docker update --cpus 0.5 $(docker ps -qa) ; docker update -m 512M --memory-swap -1 $(docker ps -qa)