How to interpret this docker registry creation command?

Zack

Is the interpretation of the below command correct?

My Interpretation: Create a registry with name "registry" that listens on port 5002 of container which is mapped to port 5001 of host .

Also, I do not understand what the "registry:2" is required for? Looks like it is "repository_name:tag" which is equivalent to image name. Is this correct?

docker run -d -p 5001:5002 --restart=always --name registry registry:2

Also, I tried using "registry:1" and "registry:3" which did not work. It works only when I use "registry:2".

 ✘  ~  docker run -d -p 5001:5002 --restart=always --name new_registry registry:3
Unable to find image 'registry:3' locally
Pulling repository docker.io/library/registry
Tag 3 not found in repository docker.io/library/registry

 ✘  ~  docker run -d -p 5001:5002 --restart=always --name new_registry registry:1
Unable to find image 'registry:1' locally
Pulling repository docker.io/library/registry
Tag 1 not found in repository docker.io/library/registry
VonC

As mentioned in the official registry image

The Deploying a registry server page uses the new registry server (with a simpler mapping):

docker run -d -p 5000:5000 --restart=always --name registry registry:2

This is for localhost access only, since accessing it from other hosts would necessitate ssl certificates.

docker run -d -p 5000:5000 --restart=always --name registry \
  -v `pwd`/certs:/certs \
  -e REGISTRY_HTTP_TLS_CERTIFICATE=/certs/domain.crt \
  -e REGISTRY_HTTP_TLS_KEY=/certs/domain.key \
  registry:2

The OP Zack adds in the comments:

It seems that it does not work for tags = 3

That is because the official page only list the following tags:

2, 2.2, 2.2.0 (Dockerfile)

There is no tag 3.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to interpret Unix command?

From Dev

how to interpret interpret timeit command in Python

From Dev

how to interpret interpret timeit command in Python

From Dev

How to find the creation date of an image in a (private) Docker registry (API v2)?

From Dev

How to interpret this output of lsof command?

From Dev

How can I find a Docker image with a specific tag in Docker registry on the Docker command line?

From Dev

Docker command to fetch dockerfile from registry

From Dev

How to interpret output of "free -m" command?

From Dev

How does the Windows RENAME command interpret wildcards?

From Dev

How do I interpret the output of the "time" command?

From Dev

How does the shell interpret ././command-name?

From Dev

How to interpret results of `last reboot` command?

From Dev

How to refer to an internal docker registry?

From Dev

How to refer to an internal docker registry?

From Dev

Use PowerShell to interpret registry values

From Dev

How to allow multiple '--insecure-registry' for docker registry

From Dev

How to update Registry with REG ADD command

From Dev

How to change regedit registry from command line?

From Dev

Bash command to list all docker images in a remote registry

From Java

How to delete images from a private docker registry?

From Dev

How to add Dockerfile to a docker registry page?

From Dev

How to store my docker registry in the file system

From Dev

How to set image stored path in docker registry?

From Dev

How does mirror registry work in docker?

From Dev

How to get a rolling latest tag in the docker registry

From Java

How to know if docker is already logged in to a docker registry server

From Dev

Docker: How to prevent the use of latest image from docker registry?

From Dev

how to use a secure docker registry mirror with docker-machine?

From Dev

Windows: How can I use the command line to set registry permissions

Related Related

  1. 1

    How to interpret Unix command?

  2. 2

    how to interpret interpret timeit command in Python

  3. 3

    how to interpret interpret timeit command in Python

  4. 4

    How to find the creation date of an image in a (private) Docker registry (API v2)?

  5. 5

    How to interpret this output of lsof command?

  6. 6

    How can I find a Docker image with a specific tag in Docker registry on the Docker command line?

  7. 7

    Docker command to fetch dockerfile from registry

  8. 8

    How to interpret output of "free -m" command?

  9. 9

    How does the Windows RENAME command interpret wildcards?

  10. 10

    How do I interpret the output of the "time" command?

  11. 11

    How does the shell interpret ././command-name?

  12. 12

    How to interpret results of `last reboot` command?

  13. 13

    How to refer to an internal docker registry?

  14. 14

    How to refer to an internal docker registry?

  15. 15

    Use PowerShell to interpret registry values

  16. 16

    How to allow multiple '--insecure-registry' for docker registry

  17. 17

    How to update Registry with REG ADD command

  18. 18

    How to change regedit registry from command line?

  19. 19

    Bash command to list all docker images in a remote registry

  20. 20

    How to delete images from a private docker registry?

  21. 21

    How to add Dockerfile to a docker registry page?

  22. 22

    How to store my docker registry in the file system

  23. 23

    How to set image stored path in docker registry?

  24. 24

    How does mirror registry work in docker?

  25. 25

    How to get a rolling latest tag in the docker registry

  26. 26

    How to know if docker is already logged in to a docker registry server

  27. 27

    Docker: How to prevent the use of latest image from docker registry?

  28. 28

    how to use a secure docker registry mirror with docker-machine?

  29. 29

    Windows: How can I use the command line to set registry permissions

HotTag

Archive