mkdir -p /etc/docker
txt='{
  "exec-opts": ["native.cgroupdriver=cgroupfs"],
  "registry-mirrors": ["https://docker.mirrors.ustc.edu.cn"]
}'
echo $txt > /etc/docker/daemon.json
systemctl daemon-reload
systemctl restart docker