Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no delete button on WEB UI, button disabled #203

Open
6 tasks done
sunyao5588 opened this issue Dec 26, 2018 · 7 comments
Open
6 tasks done

no delete button on WEB UI, button disabled #203

sunyao5588 opened this issue Dec 26, 2018 · 7 comments

Comments

@sunyao5588
Copy link

Before you open an issue, you should search for similar issues.
Especially for issues that deal with starting the docker-registry-frontend we have seen a tremendous amount
of issues and most of the time a reference to the example-setup
folder was enough for the issue reporter to solve the issue on her own.

Please, make sure to provide all the information asked for below and then delete everything above Expected behavior including this line.

Expected behavior

delete button should be seen on Web UI, but not.

  • Please describe what you tried to do and what you expect the software to act like.

Actual behavior

The delete button is disabled.

  • Please describe what happened instead of the expected behavior.

Steps to reproduce the problem

  • Please describe how a developer can reproduce the issue that you faced.
    Make sure you include information how you configured or started the registry and the frontend.

Specifications

  • Which version of docker (docker version) are you running? 18.03.1-ce
  • Which operating system do you use? CentOS 7.5
  • Which version of the docker-registry-frontend are you running? konradkleine/docker-registry-frontend:v2
  • If you have the frontend running already you can find the version at the very bottom on every page.
  • Otherwise you can provide the output of docker images | grep "docker-registry-frontend".
@ryanrca
Copy link

ryanrca commented Jan 17, 2019

I have this issue too. When I refresh each screen, I see the red delete button flash, then quickly disappear.

Inspecting the application in dev tools on chrome, I found this code commented out:

<!--<div ng-hide="appMode.browseOnly" class="pull-right">
    <a class="btn btn-danger" href="tag/{{repositoryUser}}/{{repositoryName}}/{{tagName}}/{{imageId}}/delete" alt="Delete tag">
      <span class="glyphicon glyphicon-trash"></span> Delete Tag
    </a>
  </div>-->

I suspect there is some javascript commenting this out or something? Why?
"browse only mode"?

@ryanrca
Copy link

ryanrca commented Jan 17, 2019

I tried running with: ```
-e ENV_MODE_BROWSE_ONLY=false

and it had no effect.  The delete button was disabled/gone.

@presidenten
Copy link

presidenten commented Mar 14, 2019

Seems like he didnt finish the other mode

image

Check out the override on line 41
https://github.com/kwk/docker-registry-frontend/blob/v2/start-apache.sh

Edit:
Semi out of topic, but I switched to this UI: https://github.com/Joxit/docker-registry-ui

I run it like this and I can finally delete images. Yey. :-)
(Ps. I run it with a proxy running in another service, so remove the proxy network and open ports as you see fit to make it work for you)

version: '3.7'

services:
  registry:
    image: registry:2.7.1
    environment:
      - STORAGE_PATH=/registry
      - REGISTRY_STORAGE_DELETE_ENABLED=true
      - REGISTRY_HTTP_RELATIVEURLS=true
    volumes:
      - registry-data:/var/lib/registry
    networks:
      - backend
      - proxy

  gui:
    image: joxit/docker-registry-ui:1.1-static
    networks:
      - backend
      - proxy

volumes:
  registry-data:

networks:
  backend:
  proxy:
    external:
      name: proxy_backend

@ryanrca
Copy link

ryanrca commented Mar 14, 2019

I tried running with: ```
-e ENV_MODE_BROWSE_ONLY=false

and it had no effect.  The delete button was disabled/gone.

@brentco Why the frowny face? Why the confused emojie?

@brentco
Copy link

brentco commented Mar 16, 2019

I tried running with: ```
-e ENV_MODE_BROWSE_ONLY=false

and it had no effect.  The delete button was disabled/gone.

@brentco Why the frowny face? Why the confused emojie?

I don't remember. Probably sad because it didn't work.

@medito
Copy link

medito commented Sep 13, 2021

UP please

@noor-muradi
Copy link

any solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants