Docker注册表和存储库之间的区别 [英] Difference between Docker registry and repository

查看:295
本文介绍了Docker注册表和存储库之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对Docker注册表和存储库之间的区别感到困惑。看来Docker文档可以互换使用这两个字。此外,存储库有时也被称为图像,例如文档中的这些图像:


为了将存储库推送到其注册表,您需要将
命名为一个图像,或者将容器提交到我们在这里看到的命名图像。



现在,您可以将该存储库推送到其指定的注册表
名称或标签。


如何将存储库推送到注册表?你不是将图像推送到存储库吗?

解决方案

Docker注册表是一种存储Docker映像的服务。



Docker注册表可以由第三方托管,作为公共或私人注册表,如以下注册表之一:





或者您可以自己托管docker注册表

(请参阅 https://docs.docker.com/docker-trusted-registry/ 获取更多详细信息。)



Docker存储库是不同的码头图像具有相同的名称,具有不同的标签。标签是ar内图像的字母数字标识符



例如,见 https:// hub .docker.com / R /库/蟒蛇/标签/ 。官方python镜像有很多不同的标签,这些标签都是Docker Hub上的官方python存储库的所有成员。 Docker Hub是由Docker托管的Docker注册表。



要了解更多信息:




I'm confused as to the difference between docker registries and repositories. It seems like the Docker documentation uses the two words interchangeably. Also, repositories are sometimes referred to as images, such as this from their docs:

In order to push a repository to its registry, you need to have named an image or committed your container to a named image as we saw here.

Now you can push this repository to the registry designated by its name or tag.

How can you push a repository to a registry? Aren't you pushing the image to the repository?

解决方案

Docker registry is a service that is storing your docker images.

Docker registry could be hosted by a third party, as public or private registry, like one of the following registries:

or you can host the docker registry by yourself
(see https://docs.docker.com/docker-trusted-registry/ for more details).

Docker repository is a collection of different docker images with same name, that have different tags. Tag is alphanumeric identifier of the image within a repository.

For example see https://hub.docker.com/r/library/python/tags/. There are many different tags for the official python image, these tags are all members of the official python repository on the Docker Hub. Docker Hub is a Docker Registry hosted by Docker.

To find out more read:

这篇关于Docker注册表和存储库之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆