sudo systemctl edit docker
[Service] ExecStart= ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock ExecReload=/bin/kill -s HUP $MAINPID TimeoutStartSec=0 RestartSec=2 Restart=always
AllowedCPUs=0-11 MemoryMax=12G MemorySwapMax=24G
LimitNPROC=infinity LimitCORE=infinity TasksMax=infinity Delegate=yes KillMode=process OOMScoreAdjust=-500 EOF
sudo systemctl daemon-reexec sudo systemctl daemon-reload sudo systemctl restart docker
systemctl cat docker.service
systemctl status docker systemctl show docker | grep -E 'MemoryMax|CPUQuota|AllowedCPUs'