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
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
Docker配置cgroup存储驱动
https://liumou.site/doc/707