systemctl show docker | grep Accounting
systemctl set-property docker.service MemoryAccounting=yes
systemctl set-property docker.service CPUAccounting=yes
然后重启docker服务
systemctl show docker | grep Accounting
systemctl set-property docker.service MemoryAccounting=yes
systemctl set-property docker.service CPUAccounting=yes
然后重启docker服务