Docker Community Forums

Share and learn in the Docker community.

Docker pull hub.docker.com/image does not work?

Im trying to get images into my google cloud kubernetes cluster.

But when i ussed: hub.docker.com/redis it didnt work.

So i tested locally, withouth any success, i get:

Pulling repository hub.docker.com/redis invalid character '<' looking for beginning of value

##I Tried:

docker pull hub.docker.com/redis
docker pull hub.docker.com/library/redis
docker pull hub.docker.com/library/redis:latest
docker pull hub.docker.com/_/redis

I tried other images but it wouldn’t work.
Though when i do docker pull redis, it just works.
Am i doing something wrong or is this not possible?

##docker info
Client:
Version: 1.13.1
API version: 1.26
Go version: go1.7.5
Git commit: 092cba3
Built: Wed Feb 8 08:47:51 2017
OS/Arch: windows/amd64

Server:
Version: 1.13.1
API version: 1.26 (minimum version 1.12)
Go version: go1.7.5
Git commit: 092cba3
Built: Wed Feb 8 08:47:51 2017
OS/Arch: linux/amd64
Experimental: true

the default registry for docker images is just hub.docker.com, so docker pull redis will automatically pull it from there.

yea but why can’t i pull when i prepend the host? isn’t it super weird?

you could
docker pull registry.hub.docker.com/library/redis

1 Like

Using just redis:3.2.8:alpine as image name in google cloud worked, apparently.

So this issue can be closed.

Still think its a weird concept that you can only get images from hub.docker.com without using the host.
though you can only get images from other hubs, with specifying the host.

you can’t both specify the host.

Thanks for the answer, although when i do that my commandline gets stuck without return any feedback why.

Thanks anyways.

copied the wrong url, could try again