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
  • Brite
  • 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 - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. Feature Requests
  3. Installing when registry.docker.com is not available: using registry-mirror in docker daemon config

Installing when registry.docker.com is not available: using registry-mirror in docker daemon config

Scheduled Pinned Locked Moved Feature Requests
installationdocker registry
6 Posts 2 Posters 192 Views 2 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.
  • S Offline
    S Offline
    syn
    App Dev
    wrote last edited by
    #1

    When running a normal ./cloudron-setup in a restricted network environment or during a docker hub outage:

    2026-06-21T09:58:41 ==> installer: downloading new addon images
    2026-06-21T09:58:41 ==> installer:      Pulling docker images: registry.docker.com/cloudron/graphite:3.5.3@sha256:44ddbfd8c30d3eaa4fa6db207f4e18a4f1749ce6ed82d44e9e9a233a96febced registry.docker.com/cloudron/mail:3.18.2@sha256:130d518db6d56aa536f19a4901d7bc265666927165205aed302e6450c51791c7 registry.docker.com/cloudron/mongodb:6.3.0@sha256:8757111970a99fb9a9880f02a2a77fe9cb7368745fcff555bf528471ecb50ec3 registry.docker.com/cloudron/mysql:3.6.0@sha256:12fd9d8d92a41b78ca422ef05d7dade75eba4f8647b0fabaa873ba6efb607783 registry.docker.com/cloudron/postgresql:6.4.0@sha256:759c5c68e8f3a91592911177dcd2e9e39de48528b7b1bab659bae2f5ebd2d207 registry.docker.com/cloudron/redis:3.8.0@sha256:54a12252edbc326fd4d10e8c00836cc68776f3463f22366279f7cd8d4dafd20f registry.docker.com/cloudron/sftp:3.10.0@sha256:c3a65928ef5cf7ba0750e93d9c605fb39e7fec02de7db05cffe80927b39943de registry.docker.com/cloudron/turn:1.8.2@sha256:9f3609969a5757837505c584c98246a3035a84a273b9be491665ac026423fd5f
    Error response from daemon: Get "https://registry.ipv4.docker.com/v2/": net/http: TLS handshake timeout
    

    I configured the mirror via /etc/docker/daemon.json with e.g {"registry-mirrors": ["https://mirror.gcr.io"]}

    But currently cloudron uses registry.docker.com as an explicit registry host, so it bypasses the Docker Hub mirror registry config.

    Patching src/infra_version.js to replace registry.docker.com with docker.io enables the proxying.

    The ipv6 workaround implemented in or after https://forum.cloudron.io/topic/7420/ipv6-only-cloudron would also need to be patched, but otherwise this seems a net win?

    1 Reply Last reply
    2
    • girishG Offline
      girishG Offline
      girish
      Staff
      wrote last edited by
      #2

      Right, explicit registry.docker.com was added for better IPv6 support. So, mirror.gcr.io is mirroring all of docker hub? Where can I find more information ?

      1 Reply Last reply
      0
      • S Offline
        S Offline
        syn
        App Dev
        wrote last edited by
        #3

        https://docs.cloud.google.com/artifact-registry/docs/pull-cached-dockerhub-images

        1 Reply Last reply
        1
        • S Offline
          S Offline
          syn
          App Dev
          wrote last edited by
          #4

          as for registry.docker.com vs docker.io: i got that from LLM and confirmed this was the case while installing. As soon as I patched infra_version.js - docker daemon stopped trying that explicit docker registry and fell back docker.io to the configured mirror

          1 Reply Last reply
          0
          • girishG Offline
            girishG Offline
            girish
            Staff
            wrote last edited by
            #5

            The docker code uses dockerode (node module) as the client. Since the option is in daemon.json, I imagine registry-mirrors is a feature of the docker daemon though and not the client 🤔 Have to really investigate.

            https://docs.cloud.google.com/artifact-registry/docs/pull-cached-dockerhub-images

            It does say that it caches "popular" images, not sure what that means.

            For our apps, we already use quay.io as the fallback. We push images to both docker hub and quay. Maybe that is what we need to do for the platform images.

            1 Reply Last reply
            0
            • girishG girish marked this topic as a regular topic
            • girishG girish moved this topic from Support
            • S Offline
              S Offline
              syn
              App Dev
              wrote last edited by
              #6

              If the image still isn't found, the Docker daemon fetches the image from the canonical repository on Docker Hub.
              that's a feature of docker daemon itself. Fallback through the list of configured registry-mirrors.

              The key here is that docker pull docker.io/cloudron/base is treated exactly as "docker pull cloudron/base" (implicit hub.docker.com) whereas docker pull registry.docker.com/cloudron/base is ignoring registry-mirror list because it is an explicit registry image ref.

              quay.io would also fail in a "restricted" network environment.

              One of the other solutions I considered is to allow a "cloudron base registry" option in the installer.

              1 Reply Last reply
              0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              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