修改/etc/docker/daemon.json文件后重启docker失败


Job for docker.service failed because the control process exited with error code.
See "systemctl status docker.service" and "journalctl -xe" for details.

 

错误信息:

unable to configure the Docker daemon with file /etc/docker/daemon.json: json: cannot unmarshal string into Go value of type map[string]interface {}

 

在添加阿里云镜像的时候

/etc/docker/daemon.json文件里的内容"registry-mirrors": ["https://obou6wyb.mirror.aliyuncs.com"]没有加大括号{},如果文件里面有多个键值需要用逗号分隔开!!


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM