
Docker-Proxy version 5.1.7 released: Fixes memory leaks and IPv6 resolution, strengthens default password and token security verification.
Docker-Proxy releases version 5.1.7: This update fixes a memory leak in the clientStats module and an IPv6 hostname resolution bug, as well as adds mandatory password changes upon initial startup and strong authentication for GO_PROXY_ADMIN_TOKEN, filters Kubernetes repository signature tags, and enables automatic configuration discovery during local development.
Related tags
Overview of Release
The open-source project Docker-Proxy, which provides self-hosted Docker image acceleration, was released on September 3, 2026, with version v5.1.7. This release focuses primarily on security enhancements and memory leak fixes: it addresses a memory leak and an IPv6 hostname resolution bug in the go-proxy client, introduces crucial security improvements such as mandatory default administrator password changes and strong token validation during startup, and resolves issues with registry.k8s.io tag redirection failures.
Key Features
Fixes Memory Leak in
clientStats: A new<code>statsJanitor</code>process is introduced to periodically clean up idle client records that exceed the configured<code>StatsIdleTimeout</code>(default: 1 hour). The cleaning cycle is controlled by<code>StatsJanitorInterval</code>(default: 5 minutes). When hot reloading is enabled, the old janitor process is stopped before starting a new one. This prevents long-running proxy services from consuming excessive memory due to the accumulation of statistics.Fixes IPv6 Resolution Bug in
<code>resolveRegistry</code>: The previous method of resolving hostnames using<code>strings.SplitN(r.Host, ":", 2)[0]</code>incorrectly truncated hostname formats like<code>:port</code>. This has been replaced with<code>net.SplitHostPort</code>for unified handling of hosts and ports, ensuring proper IPv6 user access.Security Enhancements: Mandatory Password Change and Strong Token Validation:
- Default password must be changed: The default administrator password is now enforced to be reset during the initial startup.
GO_PROXY_ADMIN_TOKENHard Validation During Startup: A placeholder blacklist (e.g., `change-me,admin, empty string) with a minimum length of 16 characters, combined with strict validation during startup, ensures that the system only starts if the token meets all criteria.
k8s Registry Tag List Optimization: The
<code>tags/list</code>filter for registry.k8s.io has been optimized to remove signature-related tags (e.g.,.sig,.att) to avoid artificially inflating tag counts and prevent overwhelming the last page with signature information. Additionally, community PR #100 is implemented to handle failed registry.k8s.io tag redirection and implement a rollback mechanism.Other Fixes and Improvements:
- Automatic Configuration Discovery: The
<code>go run .</code>command no longer exits immediately after printing usage instructions; instead, it automatically selects the configuration file based on the order specified in<code>config.local.yaml</code> → <code>config.yaml</code> → <code>config.example.yaml</code>, providing a smoother local development experience. - Grace Mode Prompting: When metadata retrieval or rollback to GitHub releases fails, the response now includes new
<code>source</code>and<code>metadataFailed</code>fields, which are displayed as a banner in all three languages (English, Chinese, Japanese) on the frontend. engines.nodeCorrection: The minimum Node.js version requirement has been corrected from>=14.0.0to>=18.0.0.- Installation Script Optimization: The installation banner now includes a default administrator account prompt; and the generated dockerd systemd unit includes
<code>ExecReload=/bin/kill -s HUP $MAINPID</code>. - Frontend UI Tweaks: The logo height has been increased from 28px to 40px, and the header inner margin has been adjusted from 12px to 14px.
- Automatic Configuration Discovery: The
Project Introduction
Docker-Proxy is a self-hosted Docker image acceleration service that provides a one-click deployment for accelerating and managing public image repositories such as Docker Hub, GHCR, Quay, K8s, MCR, Elastic, and NVCR. Key features include:
- Zero Disk Cache: The system routes requests to major public repositories based on the host address, performs token authentication on the server-side, and forwards data without storing it locally or consuming local storage.
- One-Click Deployment: An interactive menu allows for “installing dependencies → starting acceleration → (optional) rendering Nginx/Caddy reverse proxy (automatic HTTPS)” with a single click.
- Private Image Support: The system can be configured to use upstream account passwords to obtain bearer tokens, allowing the retrieval of private Docker Hub images and mitigating official rate limits.
- HubCMD-UI Management Panel: A web-based interface for managing proxies, setting server parameters, and performing hot reloads, including image search, container management, a system dashboard, traffic monitoring, and alerts.
- IP Access Control: Support for whitelisting IP addresses and CIDR network segments.
- Architecture Support: Compatible with主流
linux/amd64andlinux/arm64architectures.
The project is licensed under the Apache 2.0 license, and its design draws inspiration from the image proxy scheme in CNCF Distribution.
Deployment Methods
Docker Compose Deployment: Download the
<code>docker-compose.yaml</code>file from the repository and run:docker compose up -dOne-Click Installation Script: Run:
bash -c "$(curl -fsSL https://raw.githubusercontent.com/dqzboy/Docker-Proxy/main/install/DockerProxy_Install.sh)"The script automatically checks and installs Docker / Docker Compose, generates a random
<code>GO_PROXY_ADMIN_TOKEN</code>and writes it to.env, and optionally deploys Nginx / Caddy reverse proxies. After deployment, access the management panel athttp://<serverIP>:30080/admin(default username:root / admin@123, password will be forced to change upon first startup).Local Development:
export GO_PROXY_ADMIN_TOKEN="$(openssl rand -hex 16)" cd go-proxy && go run .Important Note: The management API port
<code>:5001</code>should only be exposed on the internal network, while the proxy entry point is<code>:5000</code>.
Getting Started and More Information
- Release Notes: https://github.com/dqzboy/Docker-Proxy/releases/tag/v5.1.7
- Complete Changes: https://github.com/dqzboy/Docker-Proxy/compare/v5.1.6…v5.1.7
- Open Source Repository: https://github.com/dqzboy/Docker-Proxy
More News
Want to see more quality content?
Browse all news