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 | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. Private docker registry in Cloudron

Private docker registry in Cloudron

Scheduled Pinned Locked Moved Unsolved Support
docker registrydocker
2 Posts 2 Posters 10 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.
  • J Offline
    J Offline
    jenschude
    wrote last edited by
    #1

    For the sake of completeness as it may happen to others:

    We finally identified an issue in the network configuration, that isolated the internal VM network from the public network. Disabling the isolation solved the issue at hand. We are now figuring out another way to isolate the VM itself.

    Description

    We use Cloudron 9.0.10. Since yesterday i try to setup in cloudron a docker registry where i can put my application images and to pull from.

    Adding GitHub or docker.io registries is working. But i can't add a registry hosted on cloudron itself. I tried it with Cloudron Container Registry. I tried it through gitea. We also tried to add a gitea container registry from another cloudron instance to this cloudron server. It always fails with "socket hangup".

    Steps to reproduce

    • Add Cloudron private registry with users managed through cloudron

    • System -> Docker -> Add registry

    • use docker registry address

    • use cloudron user credentials

    • save

    Troubleshooting Already Performed

    • Multiple reinstalls with different configurations.

    • Used gitea instead of cloudron container registry

    • docker login locally is working against cloudron container registry and gitea

    Used a testing script locally to check the checkAuth method from the docker registry form.

    See https://git.cloudron.io/platform/box/-/blob/master/src/dockerregistries.js?ref_type=heads#L67

    import docker from 'dockerode';
    
    const connection = new docker({ socketPath: 'some/docker.sock', timeout: 3000 });
    
    const result = await connection.checkAuth({
        serverAddress: 'git.example.com',
        username: 'root',
        password: 'somepassword'
    })
    
    console.log(result);
    

    This works locally. But in the form it doesn't and always fails with "socket hangup".

    I also tried internal container names and IPs but it seems they are not valid hostnames for this method here: https://git.cloudron.io/platform/box/-/blob/master/src/dockerregistries.js?ref_type=heads#L55

    System Details

    Cloudron version
    9.0.10
    Ubuntu version
    Ubuntu 24.04.3 LTS Linux 6.8.0-87-generic
    Vendor
    QEMU
    Product
    Standard PC (i440FX + PIIX, 1996)
    CPU
    16 Core "AMD EPYC 7352 24-Core Processor"
    Memory
    67.42 GB RAM & 8.59 GB Swap

    1 Reply Last reply
    0
    • jamesJ Offline
      jamesJ Offline
      james
      Staff
      wrote last edited by james
      #2

      Hello @jenschude
      I have tried this setup on the Cloudron demo server.
      Installing the https://my.demo.cloudron.io/#/appstore/com.docker.registry?version=2.0.0 app with allow all users from Cloudron as the option.
      Using the location dr.demo.cloudron.io after the installation has finished going into System=>Docker settings and adding the registry with user cloudron and password cloudron:
      745eb4ae-58a7-4e7d-bee8-1463088b7686-image.png

      No issue here:
      83bfb60c-5e68-424b-bb7a-3241fa41ecd8-image.png

      This is also the type of setup I am using daily for pushing test images with the docker remote builder app for app development.

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