修改docker配置
#如果没有配置文件的话,新建
mkdir /root/.docker
#进入docker配置目录
cd /root/.docker/
#修改配置文件
vi config.json
添加如下配置信息
{ "auth": {}, "experimental": "enabled" }
开启manifest实验特性
#如果没有配置文件的话,新建 vi /etc/docker/daemon.json
添加如下配置信息
{ "registry-mirrors": ["https://r9xxm8z8.mirror.aliyuncs.com","https://registry.docker-cn.com"], "experimental": true }
重加载服务配置并重启docker
#重新加载服务的配置文件 systemctl daemon-reload #重启docker systemctl restart docker
测试manifest是否开启
#测试manifest是否开启 docker manifest #查看doc