编辑 /etc/docker/daemon.json ,加上以下内容。(如果没有这个文件直接创建。)
{
"ipv6":true,
"fixed-cidr-v6": "fd00::/80",
"experimental": true,
"ip6tables": true,
"registry-mirrors":["http://hub-mirror.c.163.com","https://ustc-edu-cn.mirror.aliyuncs.com/","https://registry.aliyuncs.com"]
}
重启docker engine
sudo systemctl restart docker