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. Build Service
  3. Integrate a private docker registry

Integrate a private docker registry

Scheduled Pinned Locked Moved Solved Build Service
19 Posts 8 Posters 3.0k Views 7 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.
  • M msbt

    I'm with @robi on this one. At the moment I'm running my own docker-registry for app development on a virtual machine which I made somewhat maintainable over time, but it would be great if even that part could be handled by Cloudron as well.

    An app which just runs the registry alongside the build server, of which I put the credentials in each Cloudron that gets apps pushed from it or something like that. I haven't checked out the thing @mario made, but it sounds something I might be interested in.

    Edit: this probably really is an edge case, because most of the users are happy with the apps from the store, but if you do custom work for customers (especially if it's more than one), you would want an easy to set up, self-hosted docker registry that's password protected (which mine isn't at the moment, but all my apps are hosted on Cloudrons gitlab anyways).

    A Offline
    A Offline
    adrw
    wrote on last edited by
    #10

    I'm in strong agreement with @robi and @msbt, I'm working on a custom app and using Cloudron as a stripped down much cheaper alternative to AWS for hosting and a private docker registry is the last missing puzzle piece since I don't want to publish the image in a public Docker registry. A Cloudron private docker registry would be greatly appreciated and I'd be happy to pitch in with testing from a Github Actions CI use case or local publishing.

    1 Reply Last reply
    2
    • P Offline
      P Offline
      plusone-nick
      wrote on last edited by
      #11

      +1 on this for me too. Using Wappler to build no-code/low-code nodejs apps and need a private repo, ideally within cloudron 🙏👌

      ✌💙+1

      1 Reply Last reply
      2
      • E Offline
        E Offline
        ekevu123
        wrote on last edited by
        #12

        I just came across the same issue. I would like to push my images to the Private Docker Registry app which is on Cloudron as well - and it would be totally in-brand to allow both apps to interact with each other.

        I tried changing the link in the config file according to the docs, but the standard is still set to docker.io.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          msbt
          App Dev
          wrote on last edited by
          #13

          Are you using the build-app? If so, did you adjust the config.json with your registry? You can also try cloudron build --set-repository and enter your private registry

          1 Reply Last reply
          0
          • E Offline
            E Offline
            ekevu123
            wrote on last edited by ekevu123
            #14

            I did adjust the config, but in the end, the tool just used docker.io/MY_LINK. If I use cloudron build without the build service, won't this build the image locally, but then push it into mr repository?

            1 Reply Last reply
            0
            • nebulonN Offline
              nebulonN Offline
              nebulon
              Staff
              wrote on last edited by
              #15

              Yes the build service is only optional in case a local docker setup is not viable or the upload speed is low. But otherwise by default it would build it locally and then push to the configured repository.

              1 Reply Last reply
              0
              • E Offline
                E Offline
                ekevu123
                wrote on last edited by
                #16

                I lost track of this thread. Can I just confirm the original question? It seems like the build service works only with docker.io.

                I tried changing it in docker.json, but all it does is that it adds my repository address to docker.io/library, which fails. I also tried cloudron build --set-repository, but that leads to the same result.

                1 Reply Last reply
                0
                • nebulonN Offline
                  nebulonN Offline
                  nebulon
                  Staff
                  wrote on last edited by
                  #17

                  does the image repository you set with --set-repository also contain the domain of your target registry? I think docker defaults to docker.io if not provided.

                  1 Reply Last reply
                  0
                  • E Offline
                    E Offline
                    ekevu123
                    wrote on last edited by
                    #18

                    I got it. So, apparently, this works for me when I set the --set-repository using this structure: mydocker.registry.com/my-repo. It probably works then as well if I put the repo into the build service config, but then I could only push to one repo.
                    So, the solution seems to be to always manually specify the repository as well. Also, I copy-pasted my docker registry link, because it is quite long, and adding https:// at the beginning causes problems, but it works without it.

                    But at least I have a working way of handling this now, thank you! That is very helpful as I don't always have fast internet.

                    1 Reply Last reply
                    0
                    • nebulonN Offline
                      nebulonN Offline
                      nebulon
                      Staff
                      wrote on last edited by
                      #19

                      Right having unreliable and slow internet connection was one of the main reasons for us to create that buildservice app.

                      For the repository URLs, this is more like a docker quirk. The build service just passes those strings forward to docker.

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