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. App Wishlist
  3. Docker registry

Docker registry

Scheduled Pinned Locked Moved Solved App Wishlist
65 Posts 9 Posters 26.4k Views 12 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.
  • girishG girish

    @mario Oh wow, this is awesome. I had no idea one could run a registry this way. I thought one has to make some use of the docker addon! This way is so much simpler and nicer.

    I forked the code to https://git.cloudron.io/cloudron/docker-registry-app/ and gave you permissions. It just worked (tm). Do you think you can put in a LICENSE file and keep developing there? It's a holiday for thanksgiving here, but I will look into this soonish.

    marioM Offline
    marioM Offline
    mario
    App Dev
    wrote on last edited by
    #20

    @girish happy Thanksgiving! 🙂

    Thanks for the fork, will see what I can do in the coming days 😉

    1 Reply Last reply
    0
    • mehdiM mehdi

      @mario This looks good ! Combined with the authProxy of Cloudron6, we could disable the htpasswd auth of the app and since it uses basic auth it should work with the LDAP users !

      We would just have to slap a basic web interface on that and it would be perfect 😄

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

      @mehdi said in Docker registry:

      Combined with the authProxy of Cloudron6, we could disable the htpasswd auth of the app and since it uses basic auth it should work with the LDAP users !

      I gave this a try and this worked great! https://git.cloudron.io/cloudron/docker-registry-app/-/commit/547e3b30b0d9038d9fe73416a7df7b3d32f265ec

      marioM 1 Reply Last reply
      2
      • fbartelsF fbartels

        @mario TIL portus does not implement it's own registry, but simply uses the official one.

        Yes, having them separate can have it's benefits. Would need to refresh my knowledge in regards to portus first before I know if I could be of much help.

        marioM Offline
        marioM Offline
        mario
        App Dev
        wrote on last edited by
        #22

        @fbartels said in Docker registry:

        @mario TIL portus does not implement it's own registry, but simply uses the official one.

        Yes, having them separate can have it's benefits. Would need to refresh my knowledge in regards to portus first before I know if I could be of much help.

        Indeed 🙂 It basically takes advantage of the official registry support for token-auth, giving you a nice UI, permissions, etc.

        When you get a moment to check it out, let's talk! 🙂

        1 Reply Last reply
        1
        • girishG girish

          @mehdi said in Docker registry:

          Combined with the authProxy of Cloudron6, we could disable the htpasswd auth of the app and since it uses basic auth it should work with the LDAP users !

          I gave this a try and this worked great! https://git.cloudron.io/cloudron/docker-registry-app/-/commit/547e3b30b0d9038d9fe73416a7df7b3d32f265ec

          marioM Offline
          marioM Offline
          mario
          App Dev
          wrote on last edited by mario
          #23

          @girish said in Docker registry:

          @mehdi said in Docker registry:

          Combined with the authProxy of Cloudron6, we could disable the htpasswd auth of the app and since it uses basic auth it should work with the LDAP users !

          I gave this a try and this worked great! https://git.cloudron.io/cloudron/docker-registry-app/-/commit/547e3b30b0d9038d9fe73416a7df7b3d32f265ec

          The only problem here is that this would not work for me - we basically only have admins on Cloudron itself, and this would limit Registry access to them alone.

          Edit: this is because we do auth via Azure AD/SAML for pretty much everything in the company.

          girishG 1 Reply Last reply
          0
          • marioM mario

            @girish said in Docker registry:

            @mehdi said in Docker registry:

            Combined with the authProxy of Cloudron6, we could disable the htpasswd auth of the app and since it uses basic auth it should work with the LDAP users !

            I gave this a try and this worked great! https://git.cloudron.io/cloudron/docker-registry-app/-/commit/547e3b30b0d9038d9fe73416a7df7b3d32f265ec

            The only problem here is that this would not work for me - we basically only have admins on Cloudron itself, and this would limit Registry access to them alone.

            Edit: this is because we do auth via Azure AD/SAML for pretty much everything in the company.

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

            @mario said in Docker registry:

            The only problem here is that this would not work for me

            Good point. I forgot to add the optionalSso flag to manifest. With that flag, you can install the app without Cloudron Directory integration (like you do with other apps) and then we can have the default admin/admin setup that you have when LDAP is disabled. Would that work?

            marioM 1 Reply Last reply
            1
            • girishG girish

              @mario said in Docker registry:

              The only problem here is that this would not work for me

              Good point. I forgot to add the optionalSso flag to manifest. With that flag, you can install the app without Cloudron Directory integration (like you do with other apps) and then we can have the default admin/admin setup that you have when LDAP is disabled. Would that work?

              marioM Offline
              marioM Offline
              mario
              App Dev
              wrote on last edited by
              #25

              @girish yes, though there's a bug in your commit 😛 So let's make sure we fix that too.

              girishG 1 Reply Last reply
              0
              • marioM mario

                @girish yes, though there's a bug in your commit 😛 So let's make sure we fix that too.

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

                @mario Ha ha, possibly. I only hacked it up quickly and checked if proxyAuth code in 6.0 will work before I make the release.

                marioM 1 Reply Last reply
                1
                • girishG girish

                  @mario Ha ha, possibly. I only hacked it up quickly and checked if proxyAuth code in 6.0 will work before I make the release.

                  marioM Offline
                  marioM Offline
                  mario
                  App Dev
                  wrote on last edited by
                  #27

                  @girish enjoy your holiday and let me know when you're back around next week so we can take this further 🙂

                  1 Reply Last reply
                  0
                  • mehdiM Offline
                    mehdiM Offline
                    mehdi
                    App Dev
                    wrote on last edited by
                    #28

                    @girish great ! I was 90% sure it would work, I'm glad I got it right 😛

                    About interfaces, Portus indeed looks really great. However, I really don't see how it would work as a separate app. I really think it makes sense to bundle them together.

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

                      Is Portus still developed? It seems it has seen no commits since Mar 25 2020?

                      1 Reply Last reply
                      0
                      • ? Offline
                        ? Offline
                        A Former User
                        wrote on last edited by
                        #30

                        I am both excited about this and confused about where it is at. My endgame is using GitLab to manage containers, but I need to point it at a registry. Would this ultimately work? And is there a way to have auth go through gitlab for this?

                        marioM 1 Reply Last reply
                        1
                        • ? A Former User

                          I am both excited about this and confused about where it is at. My endgame is using GitLab to manage containers, but I need to point it at a registry. Would this ultimately work? And is there a way to have auth go through gitlab for this?

                          marioM Offline
                          marioM Offline
                          mario
                          App Dev
                          wrote on last edited by
                          #31

                          @atrilahiji it's currently working as a stand-alone registry via basic auth powered by htpasswd file. It'll also support Cloudron SSO shortly, after that I'll work on making it work with GitLab.

                          robiR 1 Reply Last reply
                          3
                          • marioM mario

                            @atrilahiji it's currently working as a stand-alone registry via basic auth powered by htpasswd file. It'll also support Cloudron SSO shortly, after that I'll work on making it work with GitLab.

                            robiR Offline
                            robiR Offline
                            robi
                            wrote on last edited by
                            #32

                            @mario how's it going?

                            Conscious tech

                            marioM 1 Reply Last reply
                            2
                            • robiR robi

                              @mario how's it going?

                              marioM Offline
                              marioM Offline
                              mario
                              App Dev
                              wrote on last edited by
                              #33

                              @robi I have managed to integrate the registry with GitLab.

                              @girish where are we at with making proper MR for AuthProxy + making SSO optional? Then I can document GitLab integration, you can write some tests and off we go!

                              girishG 1 Reply Last reply
                              3
                              • marioM mario

                                @robi I have managed to integrate the registry with GitLab.

                                @girish where are we at with making proper MR for AuthProxy + making SSO optional? Then I can document GitLab integration, you can write some tests and off we go!

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

                                @mario Fantastic news. So, all we need is docs to make it work with GitLab registry or does it need any packages changes to gitlab app or docker registry app ?

                                marioM 1 Reply Last reply
                                2
                                • girishG girish

                                  @mario Fantastic news. So, all we need is docs to make it work with GitLab registry or does it need any packages changes to gitlab app or docker registry app ?

                                  marioM Offline
                                  marioM Offline
                                  mario
                                  App Dev
                                  wrote on last edited by
                                  #35

                                  @girish doesn't seem like it'll need package changes, documentation will be enough.

                                  marioM 1 Reply Last reply
                                  0
                                  • marioM mario

                                    @girish doesn't seem like it'll need package changes, documentation will be enough.

                                    marioM Offline
                                    marioM Offline
                                    mario
                                    App Dev
                                    wrote on last edited by mario
                                    #36

                                    I take that back, I did add some package changes. Had no time to test, but things seem to be working ok from the initial glimpse at it:

                                    https://git.cloudron.io/cloudron/docker-registry-app/-/merge_requests/1

                                    Please test and report back @girish and others 🙂

                                    1 Reply Last reply
                                    2
                                    • robiR Offline
                                      robiR Offline
                                      robi
                                      wrote on last edited by
                                      #37

                                      Might be useful to add auto deletion of old images:
                                      https://github.com/jeffstephens/retention-manager

                                      Conscious tech

                                      marioM 1 Reply Last reply
                                      0
                                      • robiR robi

                                        Might be useful to add auto deletion of old images:
                                        https://github.com/jeffstephens/retention-manager

                                        marioM Offline
                                        marioM Offline
                                        mario
                                        App Dev
                                        wrote on last edited by
                                        #38

                                        @robi GitLab does that for me 😛 Maybe a separate app? 🙂

                                        girishG robiR 2 Replies Last reply
                                        0
                                        • marioM mario

                                          @robi GitLab does that for me 😛 Maybe a separate app? 🙂

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

                                          @mario Just looking into this now.

                                          Wondering, what is the best way forward. The app has no UI, but can have a login screen (via proxyAuth). So, when they login, they see a blank screen. Not ideal. Does it make sense to bundle any of the docker uis like https://github.com/Joxit/docker-registry-ui/ ? Seems quite easy to do. I can look into it.

                                          marioM 1 Reply Last reply
                                          2
                                          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