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


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

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

    Docker Registry
    2
    9
    93
    Loading More Posts
    • 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.
    • TomsFreitas
      TomsFreitas last edited by

      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

      girish 1 Reply Last reply Reply Quote 0
      • girish
        girish Staff @TomsFreitas last edited by

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

        1 Reply Last reply Reply Quote 0
        • TomsFreitas
          TomsFreitas last edited by

          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

          girish 1 Reply Last reply Reply Quote 0
          • girish
            girish Staff @TomsFreitas last edited by

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

            TomsFreitas 1 Reply Last reply Reply Quote 0
            • TomsFreitas
              TomsFreitas @girish last edited by

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

              girish 1 Reply Last reply Reply Quote 0
              • girish
                girish Staff @TomsFreitas last edited by

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

                TomsFreitas 1 Reply Last reply Reply Quote 0
                • TomsFreitas
                  TomsFreitas @girish last edited by

                  @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!

                  girish 1 Reply Last reply Reply Quote 0
                  • girish
                    girish Staff @TomsFreitas last edited by

                    @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.

                    TomsFreitas 1 Reply Last reply Reply Quote 0
                    • TomsFreitas
                      TomsFreitas @girish last edited by

                      @girish Thank you once again

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post
                      Powered by NodeBB