Docker Hub official website has been moved to https://registry.hub.docker.com from https://hub.docker.com/.
If I try to docker pull
images from URL like: docker pull registry.hub.docker.com/busybox
it shows:
registry.hub.docker.com/busybox: this image was pulled from a legacy registry.
Important: This registry version will not be supported in future versions of docker.
But if I use docker pull registry.hub.docker.com/busybox
.
It cannot pull the image.
Same situation when using curl -k https://registry.hub.docker.com/v1/repositories/busybox/tags
The registry path for official images (without a slash in the name) is
library/<image>
. Try this instead:It's just
docker pull busybox
, are you using an up to date version of thedocker
client. I think they stopped supporting clients lower than 1.5.Incidentally that curl works for me:
Interesting enough if you sniff the headers you get a HTTP 405 (Method not allowed). I think this might be to do with the fact that Docker have deprecated their Registry API.
I cam accross this post in search for the dockerhub repo url when creating a dockerhub kubernetes secret.. figured id share the url is used with success, hope thats ok.
this worked for me: https://index.docker.io/v1/
You're able to get the current registry-url using
docker info
:That's also the url you may use to run your self hosted-registry:
For those trying to create a Google Cloud instance using the "Deploy a container image to this VM instance." option then the correct url format would be
The suggestion above of
registry.hub.docker.com/library/<dockerimagename>
did not work for me.I finally found the solution here (in my case, i was trying to run docker.io/tensorflow/serving:latest)