I have several images in Docker Hub private repositories, and I need to pull these on remote machines using the Docker remote Rest API. Is there a way of authenticating remotely?
These are the calls I'd like to make remotely:
docker login docker pull myrepo/myimage
Navigate to Docker Hub create a Docker ID and select the personal subscription. Using docker login from the CLI, log in using your original Docker ID and pull your private images. The private images that existed in your previous namespace are now available in your new Docker ID namespace.
Kubernetes run docker pull pseudo/your-image:latest under the hood. image field in Kubernetes resources is simply the docker image to run. spec: containers: - name: app image: pseudo/your-image:latest [...] If your image is hosted in a private docker hub repo, you need to specify an image pull secret in the spec field.
Yes there is a way, you only need to specify the remote host
docker login myrepo.com
Then you can access to your images
docker pull myrepo.com/myimage
and you can specify a tag as well
docker pull myrepo.com/myimage:mytag
Hope this works for you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With