Closed ghost closed 8 years ago
Environments for registry:
Environments for registry-frontend:
Nginx config:
location /v2/ { # Do not allow connections from docker 1.5 and earlier # docker pre-1.6.0 did not properly set the user agent on ping, catch "Go *" user agents if ($http_user_agent ~ "^(docker\/1\.(3|4|5(?!\.[0-9]-dev))|Go ).*$" ) { return 404; } # To add basic authentication to v2 use auth_basic setting plus add_header auth_basic "registry.localhost"; auth_basic_user_file /etc/nginx/conf.d/registry.password; add_header 'Docker-Distribution-Api-Version' 'registry/2.0' always; proxy_pass http://docker-registry; proxy_set_header Host $http_host; # required for docker client's sake proxy_set_header X-Real-IP $remote_addr; # pass on real client's IP proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_read_timeout 900; } location / { # basic authentication auth_basic "registry-frontend.web"; auth_basic_user_file /etc/nginx/conf.d/registry.password; proxy_pass http://registry-frontend; proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; # pass on real client's IP # proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; # proxy_set_header X-Forwarded-Proto $scheme; proxy_read_timeout 900; }
docker version
Client: Version: 1.11.2 API version: 1.23 Go version: go1.5.4 Git commit: b9f10c9 Built: Wed Jun 1 21:47:50 2016 OS/Arch: linux/amd64 Server: Version: 1.11.2 API version: 1.23 Go version: go1.5.4 Git commit: b9f10c9 Built: Wed Jun 1 21:47:50 2016 OS/Arch: linux/amd64
ubuntu-14.04
v2
This is git revision: 3ad864b
Thank you for your report. Currently browse only mode is enforced: https://github.com/kwk/docker-registry-frontend/blob/v2/README.md#browse-mode
Duplicate of #106
Expected behavior
Actual behavior
Steps to reproduce the problem
Environments for registry:
Environments for registry-frontend:
Nginx config:
Specifications
docker version
) are you running?ubuntu-14.04
v2
This is git revision: 3ad864b