Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the meaning of docker hub's url design?

Tags:

url

docker

https://registry.hub.docker.com/_/ubuntu/

There is a _ in the url before the product name.

What is it for?

like image 685
j-zhang Avatar asked Dec 03 '14 05:12

j-zhang


People also ask

What is Docker repository URL?

You're able to get the current registry-url using docker info : ... Debug Mode (server): false Registry: https://index.docker.io/v1/ Labels: ... That's also the url you may use to run your self hosted-registry: docker run -d -p 5000:5000 --name registry -e REGISTRY_PROXY_REMOTEURL=https://index.docker.io registry:2.

What is container URL?

A ContainerURL represents a URL to the Azure Storage container allowing you to manipulate its blobs.

What is the default Docker registry URL?

By default, “somewhere” is the Docker Hub Registry (https://hub.docker.com). However, there are ways to configure other locations from which you can pull docker images. These locations are referred to as registries.

How do I find my Docker Hub registry URL?

The official docker hub website has been moved from https://hub.docker.com/ to https://registry.hub.docker.com.


1 Answers

If you have a account on dockerhub called foobar:

# pull from your account (foobar)
docker pull foobar/ubuntu:latest

Otherwise, if you omit the username:

# pull from the official account (library)
docker pull ubuntu:latest
# almost the same as
docker pull library/ubuntu:latest

The underscore(_) is a special namespace used to publish the official repositories.

https://registry.hub.docker.com/_/ubuntu/ is almost the same as https://registry.hub.docker.com/u/library/ubuntu/


The only difference is that you will get different image-names with identical image-id:

$ docker pull ubuntu:latest
$ docker pull library/ubuntu:latest
$ docker images

REPOSITORY                                TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
library/ubuntu                            latest              86ce37374f40        7 days ago          192.7 MB
ubuntu                                    latest              86ce37374f40        7 days ago          192.7 MB
like image 145
kev Avatar answered Sep 28 '22 05:09

kev