{"id":34527723,"url":"https://github.com/trueai-org/docker-proxy","last_synced_at":"2026-05-26T18:31:42.475Z","repository":{"id":289785437,"uuid":"972393146","full_name":"trueai-org/docker-proxy","owner":"trueai-org","description":"自建Docker镜像加速服务。","archived":false,"fork":false,"pushed_at":"2026-03-23T16:23:28.000Z","size":74,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-24T12:10:24.175Z","etag":null,"topics":["docker","docker-container","docker-hub","docker-image","docker-mirror"],"latest_commit_sha":null,"homepage":"https://docker.trueai.org","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trueai-org.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-04-25T02:24:21.000Z","updated_at":"2026-03-23T16:23:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"dedd37a6-2d0c-45b3-a84c-b5f0a1dfc910","html_url":"https://github.com/trueai-org/docker-proxy","commit_stats":null,"previous_names":["trueai-org/docker-proxy"],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/trueai-org/docker-proxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trueai-org%2Fdocker-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trueai-org%2Fdocker-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trueai-org%2Fdocker-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trueai-org%2Fdocker-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trueai-org","download_url":"https://codeload.github.com/trueai-org/docker-proxy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trueai-org%2Fdocker-proxy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33534562,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"ssl_error","status_checked_at":"2026-05-26T15:22:15.568Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","docker-container","docker-hub","docker-image","docker-mirror"],"created_at":"2025-12-24T05:24:20.358Z","updated_at":"2026-05-26T18:31:42.469Z","avatar_url":"https://github.com/trueai-org.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker Proxy\n\n自建Docker镜像加速服务。\n\n镜像加速地址：\u003chttps://docker.trueai.org\u003e\n\n镜像拉取测试：`docker pull docker.trueai.org/library/redis`\n\n镜像加速文档：\u003chttps://docker.trueai.org/swagger\u003e\n\n## 功能\n\n一键部署Docker镜像代理服务的功能，支持基于官方Docker Registry的镜像代理。\n\n## 部署\n\n\u003e Docker 版本\n\n```bash\n# 一键升安装脚本\n# 1.首次下载\nwget -O docker-upgrade.sh https://raw.githubusercontent.com/trueai-org/docker-proxy/main/scripts/docker-upgrade.sh \u0026\u0026 bash docker-upgrade.sh\n\n# 2.更新升级（以后升级只需要执行此脚本即可）\nsh docker-upgrade.sh\n```\n\n```bash\n# 1. 第一步启动容器\ndocker run --name dp -d --restart=always -p 8080:8080 registry.cn-guangzhou.aliyuncs.com/trueai-org/docker-proxy\n\n# 2. 使用 Caddy 反向代理或使用 Nginx 配置 https\n\n# 2.1 Caddy 示例\nsudo nano /etc/caddy/Caddyfile\ndoman.com {\n    reverse_proxy localhost:8080 {\n        header_up Host {host}\n        header_up X-Real-IP {remote}\n        header_up X-Forwarded-For {remote}\n        header_up X-Forwarded-Proto {scheme}\n    }\n    log {\n        output file /var/log/caddy/doman.com.log\n    }\n}\n\n# 3. 配置 Docker Daemon 或直接使用\n\n# 3.1 直接使用\ndocker pull doman.com/library/redis\n\n# 3.2 配置 Docker Daemon\nsudo mkdir -p /etc/docker\nsudo vi /etc/docker/daemon.json\n{\n  \"registry-mirrors\": [\"https://\u003c代理加速地址\u003e\"]\n}\n\nsudo systemctl daemon-reload\nsudo systemctl restart docker\n```\n\n\u003e Windows 版本\n\n```bash\na. 通过 https://github.com/trueai-org/docker-proxy/releases 下载 windows 最新免安装版，例如：midjourney-proxy-win-x64.zip\nb. 解压并执行 DockerProxy.exe\nc. 打开网站 http://localhost:8080\n```\n\n\u003e Linux 版本\n\n```bash\na. 通过 https://github.com/trueai-org/docker-proxy/releases 下载 linux 最新免安装版，例如：midjourney-proxy-linux-x64.zip\nb. 解压到当前目录: tar -xzf docker-proxy-linux-x64-\u003cVERSION\u003e.tar.gz\nc. 执行: run_app.sh\nc. 启动方式1: sh run_app.sh\nd. 启动方式2: chmod +x run_app.sh \u0026\u0026 ./run_app.sh\n```\n\n\u003e macOS 版本\n\n```bash\na. 通过 https://github.com/trueai-org/docker-proxy/releases 下载 macOS 最新免安装版，例如：midjourney-proxy-osx-x64.zip\nb. 解压到当前目录: tar -xzf docker-proxy-osx-x64-\u003cVERSION\u003e.tar.gz\nc. 执行: run_app_osx.sh\nc. 启动方式1: sh run_app_osx.sh\nd. 启动方式2: chmod +x run_app_osx.sh \u0026\u0026 ./run_app_osx.sh\n```\n\n\u003e Registry 配置项 appsettings.json\n\n- `CacheDir`：缓存目录，默认值为 `./cache`。\n- `CacheTTL`：文件缓存过期时间，单位为秒，默认值为 `604800`（7天）。\n- `Timeout`：请求超时时间，单位为毫秒，默认值为 `30000`（30秒）。\n- `MemoryLimit`：内存限制，单位为MB，默认值为 `128`（128MB）。\n- `BufferSize`：缓冲区大小，单位为字节，默认值为 `8192`（8KB）。\n- `Concurrent`：并发下载数，默认值为 `4`。\n- `Username`：Docker Hub 用户名，默认值为空，采用登录方式可提升拉取速度。\n- `Password`：Docker Hub 密码，默认值为空，采用登录方式可提升拉取速度。\n\n```json\n{\n    \"CacheDir\": \"./cache\",\n    \"CacheTTL\": 604800,\n    \"Timeout\": 30000,\n    \"MemoryLimit\": 128,\n    \"BufferSize\": 8192,\n    \"Concurrent\": 4,\n    \"Username\": \"\",\n    \"Password\": \"\"\n}\n```\n\n## 准备\n\n⚠️ 重要：选择一台国外服务器，并且未被墙。对于域名，无需进行国内备案。你也可以通过一些平台申请免费域名。在一键部署过程中，如果选择安装Caddy，它将自动配置HTTPS。若选择部署Nginx服务，则需要自行申请一个免费的SSL证书，或者通过其他方式来实现SSL加密。\n\n\n\u003e 使用 IP 地址 + 端口作为 Docker 加速服务\n\n- 适合内网环境，无需域名解析\n- 配置简单直接\n- 便于测试和开发环境使用\n\n在 Docker 的 daemon.json 文件中，您可以像这样配置：\n\n```json\n{\n  \"insecure-registries\": [\"192.168.1.100:5000\", \"10.0.0.10:8080\"],\n  \"registry-mirrors\": [\"http://192.168.1.100:8080\"]\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrueai-org%2Fdocker-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrueai-org%2Fdocker-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrueai-org%2Fdocker-proxy/lists"}