Adjusts resource limits of a running container, here capping CPU at 1 core and memory at 512 MB. CPU limits apply immediately; memory limits take effect on restart. Docker also supports --cpuset-cpus and --pids-limit.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.