不知道哪里來的,但是可以用。
1. 解決方案
-
打開配置文件(若文件不存在,會自動創建)
sudo vim /etc/docker/daemon.json -
將以下內容粘貼進去
{"builder": {"gc": {"defaultKeepStorage": "20GB","enabled": true}},"experimental": true,"features": {"buildkit": true},"insecure-registries": ["172.24.86.231"],"registry-mirrors": ["https://dockerproxy.com","https://mirror.baidubce.com","https://ccr.ccs.tencentyun.com","https://docker.m.daocloud.io","https://docker.nju.edu.cn","https://docker.mirrors.ustc.edu.cn"],"log-driver":"json-file","log-opts": {"max-size":"500m", "max-file":"3"}}
- 重啟docker服務使配置生效
# 2. 重啟 Docker 服務
sudo systemctl restart docker# 3. 驗證配置是否成功(輸出中會顯示 "Registry Mirrors" 列表)
docker info
- 拉取某個鏡像
docker pull rayproject/ray-ml:2.46.0.0e19ea-py39-cpu