How can I interact with the Registry API using cloudron user managment?
-
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
-
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
@TomsFreitas have you seen https://docs.cloudron.io/apps/docker-registry/#cloudron-directory ? You use your cloudron credentials to login.
-
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 -
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@TomsFreitas Does
docker login myregistry.domain.com
work with cloudron credentials ? -
@TomsFreitas Does
docker login myregistry.domain.com
work with cloudron credentials ?@girish yes, everything else is working as expected. Just can't seem to find any documentation that helps me in this regard.
-
@girish yes, everything else is working as expected. Just can't seem to find any documentation that helps me in this regard.
@TomsFreitas Can you set the user agent string in postman to something like
Docker-Client/20.10.12-ce (ubuntu)
? -
@TomsFreitas Can you set the user agent string in postman to something like
Docker-Client/20.10.12-ce (ubuntu)
?@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 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!@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 Ah, good. The proxyauth code has some special logic by detecting the docker client (via user agent). This is the reason it is needed.
@girish Thank you once again