Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Docker Registry
  3. No delete option for repo or tag ??

No delete option for repo or tag ??

Scheduled Pinned Locked Moved Solved Docker Registry
12 Posts 3 Posters 2.1k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • BrutalBirdieB BrutalBirdie

    @timconsidine you can use the file manager and just delete the folder 😄


    Example, I wish to delete the com.odoo.cloudronapp repo from the registry.
    I just delete /app/data/storage/docker/registry/v2/repositories/com.odoo.cloudronapp.
    Rest will be handled by the garbage collector.
    https://docs.cloudron.io/apps/docker-registry/


    @timconsidine said in No delete option for repo or tag ??:

    Nervous to ask because probably revealing my stupidity.

    Nah all good. Never be afraid to ask questions.
    How should one know how to handle this task if one never hosted a docker registry.
    I would also expect a delete button with all the option you get with cloudron 😉

    Maybe we could add that to the docs. 🤔

    timconsidineT Offline
    timconsidineT Offline
    timconsidine
    App Dev
    wrote on last edited by timconsidine
    #3

    @BrutalBirdie thank you! Nice and easy solution. I like those 😄

    Follow-up : I also don't see a way to set a repo to be private.
    Is it correct understanding that it's automatically private because it's in my private registry ?
    i.e. someone would need to log in to the registry to see images and download them

    BrutalBirdieB 1 Reply Last reply
    1
    • timconsidineT timconsidine

      @BrutalBirdie thank you! Nice and easy solution. I like those 😄

      Follow-up : I also don't see a way to set a repo to be private.
      Is it correct understanding that it's automatically private because it's in my private registry ?
      i.e. someone would need to log in to the registry to see images and download them

      BrutalBirdieB Offline
      BrutalBirdieB Offline
      BrutalBirdie
      Partner
      wrote on last edited by BrutalBirdie
      #4

      @timconsidine

      @timconsidine said in No delete option for repo or tag ??:

      Is it correct understanding that it's automatically private because it's in my private registry ?
      i.e. someone would need to log in to the registry to see images and download them

      Exactly.
      If you choose the cloudron user management, then a login is needed to access the whole registry.
      No sure if there is an option for per-user repositorys 🤔 (That would be a separate topic tho)

      Like my work? Consider donating a drink. Cheers!

      timconsidineT 1 Reply Last reply
      1
      • BrutalBirdieB BrutalBirdie

        @timconsidine

        @timconsidine said in No delete option for repo or tag ??:

        Is it correct understanding that it's automatically private because it's in my private registry ?
        i.e. someone would need to log in to the registry to see images and download them

        Exactly.
        If you choose the cloudron user management, then a login is needed to access the whole registry.
        No sure if there is an option for per-user repositorys 🤔 (That would be a separate topic tho)

        timconsidineT Offline
        timconsidineT Offline
        timconsidine
        App Dev
        wrote on last edited by
        #5

        @BrutalBirdie that's fine.
        Yes, I'm using Cloudron user management and restricting access with that.
        I don't need per-user repos.
        If I did, I would probably set up a separate instance of the app and restrict it by user.

        Cool, thank you. Now I will de-docker-hub myself !

        1 Reply Last reply
        1
        • BrutalBirdieB BrutalBirdie

          @timconsidine you can use the file manager and just delete the folder 😄


          Example, I wish to delete the com.odoo.cloudronapp repo from the registry.
          I just delete /app/data/storage/docker/registry/v2/repositories/com.odoo.cloudronapp.
          Rest will be handled by the garbage collector.
          https://docs.cloudron.io/apps/docker-registry/


          @timconsidine said in No delete option for repo or tag ??:

          Nervous to ask because probably revealing my stupidity.

          Nah all good. Never be afraid to ask questions.
          How should one know how to handle this task if one never hosted a docker registry.
          I would also expect a delete button with all the option you get with cloudron 😉

          Maybe we could add that to the docs. 🤔

          BrutalBirdieB Offline
          BrutalBirdieB Offline
          BrutalBirdie
          Partner
          wrote on last edited by
          #6

          @BrutalBirdie said in No delete option for repo or tag ??:

          Maybe we could add that to the docs.

          Created a PR for that information.
          https://git.cloudron.io/cloudron/docs/-/merge_requests/39
          @staff 👋

          Like my work? Consider donating a drink. Cheers!

          1 Reply Last reply
          0
          • timconsidineT timconsidine

            Nervous to ask because probably revealing my stupidity.
            I have been using Docker Hub as my docker repository but it is has limit on private repositories.
            So I am trying the Docker Registry app from Cloudron App Store.
            Installed.
            Pushed a test build to it.
            Can see it listed in the app interface.
            But I cannot see an option to delete it in the UI.
            Is there one ? Do I need use the CLI to remove it ?

            girishG Offline
            girishG Offline
            girish
            Staff
            wrote on last edited by girish
            #7

            @timconsidine said in No delete option for repo or tag ??:

            But I cannot see an option to delete it in the UI.

            From https://github.com/Joxit/docker-registry-ui#faq ,

            I deleted images through the UI, but they are still present on the server. How can I delete them?
            When you delete an image with the UI, only the reference is deleted and not the content.
            To remove dangling images, you need to run the garbage collector of the registry with the command registry garbage-collect config.yml or docker exec registry registry garbage-collect config.yml. (see #77 #147)

            Is this what you hit? Or do you not even see the delete option in the UI?

            BrutalBirdieB 1 Reply Last reply
            0
            • girishG girish

              @timconsidine said in No delete option for repo or tag ??:

              But I cannot see an option to delete it in the UI.

              From https://github.com/Joxit/docker-registry-ui#faq ,

              I deleted images through the UI, but they are still present on the server. How can I delete them?
              When you delete an image with the UI, only the reference is deleted and not the content.
              To remove dangling images, you need to run the garbage collector of the registry with the command registry garbage-collect config.yml or docker exec registry registry garbage-collect config.yml. (see #77 #147)

              Is this what you hit? Or do you not even see the delete option in the UI?

              BrutalBirdieB Offline
              BrutalBirdieB Offline
              BrutalBirdie
              Partner
              wrote on last edited by BrutalBirdie
              #8

              @girish there is no delete button.
              9142f7d7-b849-4968-91d4-ac2e426ad9a6-grafik.png
              c0e21ebe-04e6-4932-889a-0d15324f251e-grafik.png

              Like my work? Consider donating a drink. Cheers!

              girishG 1 Reply Last reply
              0
              • BrutalBirdieB BrutalBirdie

                @girish there is no delete button.
                9142f7d7-b849-4968-91d4-ac2e426ad9a6-grafik.png
                c0e21ebe-04e6-4932-889a-0d15324f251e-grafik.png

                girishG Offline
                girishG Offline
                girish
                Staff
                wrote on last edited by
                #9

                @BrutalBirdie mm, apparently, it's disabled by default: https://github.com/Joxit/docker-registry-ui#available-options .

                DELETE_IMAGES: Set if we can delete images from the UI. (default: false)

                Not seeing any reason to keep it disabled.

                BrutalBirdieB 1 Reply Last reply
                1
                • girishG girish

                  @BrutalBirdie mm, apparently, it's disabled by default: https://github.com/Joxit/docker-registry-ui#available-options .

                  DELETE_IMAGES: Set if we can delete images from the UI. (default: false)

                  Not seeing any reason to keep it disabled.

                  BrutalBirdieB Offline
                  BrutalBirdieB Offline
                  BrutalBirdie
                  Partner
                  wrote on last edited by
                  #10

                  @girish Hmm I did not even consider looking there, since I did not look into the app which ui is used 😄

                  Since there are more option that could be used via variables maybe include an .env file which gets dynamically loaded on the start.
                  Similar to what I did with greenlight.

                  Like my work? Consider donating a drink. Cheers!

                  girishG 1 Reply Last reply
                  1
                  • BrutalBirdieB BrutalBirdie

                    @girish Hmm I did not even consider looking there, since I did not look into the app which ui is used 😄

                    Since there are more option that could be used via variables maybe include an .env file which gets dynamically loaded on the start.
                    Similar to what I did with greenlight.

                    girishG Offline
                    girishG Offline
                    girish
                    Staff
                    wrote on last edited by
                    #11

                    @BrutalBirdie said in No delete option for repo or tag ??:

                    Since there are more option that could be used via variables maybe include an .env file which gets dynamically loaded on the start.

                    Agreed! Just fixing up the package now.

                    1 Reply Last reply
                    3
                    • girishG Offline
                      girishG Offline
                      girish
                      Staff
                      wrote on last edited by girish
                      #12

                      Pushed an update for this. To keep it simple, I just enabled it depending on the delete config for the registry itself (where it is enabled by default).

                      1 Reply Last reply
                      4
                      • nebulonN nebulon marked this topic as a question on
                      • nebulonN nebulon has marked this topic as solved on
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Bookmarks
                      • Search