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


  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
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

Cloudron Forum

Apps | Demo | Docs | Install

How can I interact with the Registry API using cloudron user managment?

Scheduled Pinned Locked Moved Docker Registry
9 Posts 2 Posters 108 Views
    • 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.
  • TomsFreitasT Offline
    TomsFreitasT Offline
    TomsFreitas
    wrote on last edited by
    #1

    Hello, i would like to interact with the registry API but I can't seem to find a way since I'm always redirected to the login page

    girishG 1 Reply Last reply
    0
  • girishG Offline
    girishG Offline
    girish Staff
    replied to TomsFreitas on last edited by
    #2

    @TomsFreitas have you seen https://docs.cloudron.io/apps/docker-registry/#cloudron-directory ? You use your cloudron credentials to login.

    1 Reply Last reply
    0
  • TomsFreitasT Offline
    TomsFreitasT Offline
    TomsFreitas
    wrote on last edited by
    #3

    Hello @girish, thank you for the answer.
    I can login using the credentials and use it via the GUI in the browser. I just can't seem to use the registry API like http://registry/v2/_catalog/ using something like postman because I can't find a way to authenticate with cloudron

    girishG 1 Reply Last reply
    0
  • girishG Offline
    girishG Offline
    girish Staff
    replied to TomsFreitas on last edited by
    #4

    @TomsFreitas Does docker login myregistry.domain.com work with cloudron credentials ?

    TomsFreitasT 1 Reply Last reply
    0
  • TomsFreitasT Offline
    TomsFreitasT Offline
    TomsFreitas
    replied to girish on last edited by
    #5

    @girish yes, everything else is working as expected. Just can't seem to find any documentation that helps me in this regard.

    girishG 1 Reply Last reply
    0
  • girishG Offline
    girishG Offline
    girish Staff
    replied to TomsFreitas on last edited by
    #6

    @TomsFreitas Can you set the user agent string in postman to something like Docker-Client/20.10.12-ce (ubuntu) ?

    TomsFreitasT 1 Reply Last reply
    0
  • TomsFreitasT Offline
    TomsFreitasT Offline
    TomsFreitas
    replied to girish on last edited by
    #7

    @girish Thank you! By setting the user agent to Docker-Client/20.10.12-ce (ubuntu) and using Basic Auth with my cloudron account, I can now access the registry API!

    girishG 1 Reply Last reply
    0
  • girishG Offline
    girishG Offline
    girish Staff
    replied to TomsFreitas on last edited by
    #8

    @TomsFreitas Ah, good. The proxyauth code has some special logic by detecting the docker client (via user agent). This is the reason it is needed.

    TomsFreitasT 1 Reply Last reply
    0
  • TomsFreitasT Offline
    TomsFreitasT Offline
    TomsFreitas
    replied to girish on last edited by
    #9

    @girish Thank you once again

    1 Reply Last reply
    0

  • Login

  • Don't have an account? Register

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

  • Don't have an account? Register

  • Login or register to search.