编辑配置文件
vi /etc/docker/daemon.json
拷贝下面的内容/etc/docker/daemon.json 中
{ "registry-mirrors":
["https://32xw0apq.mirror.aliyuncs.com"] }
systemctl daemon-reload
systemctl restart docker
有许多在线 JSON 验证工具可用,你可以使用其中之一来验证 Docker 配置文件的语法。以下是一些常用的在线 JSON 验证工具:
JSONLint:
网址:https://jsonlint.com/
JSON Formatter & Validator:
网址:https://jsonformatter.curiousconcept.com/
Online JSON Viewer:
网址:https://jsonviewer.stack.hu/
chatgpt记录:
ewer.stack.hu/
chatgpt记录:
https://chat.openai.com/share/78b0a52f-e2e6-49f4-91e7-61dc3f3381b5