修改/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