kwk / docker-registry-frontend

Browse and modify your Docker registry in a browser.
https://registry.hub.docker.com/u/konradkleine/docker-registry-frontend/
MIT License
1.68k stars 616 forks source link

There is no deleting image function after deployment #150

Closed ghost closed 8 years ago

ghost commented 8 years ago

Expected behavior

web-repository

Steps to reproduce the problem

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;
  }

Specifications

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
kwk commented 8 years ago

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