修改/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"]没有加大括号{},如果文件里面有多个键值需要用逗号分隔开!!

posted @ 2021-04-22 17:15  Sakura_hy  阅读(1809)  评论(0)    收藏  举报