0031400 (@lxz07)nginx代理docker hub 支持pull 中发帖

原文链接
0031400 blog - nginx代理docker hub pull
配置文件
server {
listen [::]:80;
server_name docker.yourdomain.com;
location = / {
return 404;
}
location /v2/ {
proxy_pass https://registry-1.docker.io/v2/;
proxy_set_header Host registry-1.docker.io;
more_set_headers 'WWW-Authenticate: Bearer realm="https://docker.yourdomain.com/auth/token", service="reg...