4

I am looking for documentation for docker login, I need to login to a registry to pull docker image and I need to do it remotely using docker remote APIs.

But unfortunately I am unable to find docker remote API docs, any help would be greatly appreciated.

API doc : https://docs.docker.com/engine/reference/api/docker_remote_api_v1.19/

Thanks in advance. Sarath Krishnan

1 Answer 1

1

you go as

 docker login your.domain.to.the.registr.without.protocol.or.port
 enter username
 enter password

now you can pull using docker pull your.domain.to.the.registr.without.protocol.or.port/youimage

Ensure your registry runs behind a SSL proxy / termination, or you run into security issues. Consider reading this in this case https://docs.docker.com/registry/insecure/

2
  • 1
    Thanks for the reply, I am able to do it from Docker host, I am trying to use Docker Remote API to do it. I am using the API : docs.docker.com/engine/reference/api/docker_remote_api_v1.20/#/… . On the Header I am setting X-Registry-Auth and its value - {'username': 'user', 'password': 'paasswd', 'email': 'sarath@company.com', 'serveraddress' : 'server.com'} . When I do it I am getting 401 Authentication failed . But when I use the same credentials I am able to login from docker host using cli. Aug 24, 2016 at 20:08
  • @Sarathkrish Did you resolved this issue?
    – Sarath TS
    Feb 7, 2022 at 12:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.