Registry:
A service responsible for hosting and distributing images. The default registry is the Docker Hub.
Docker registry 能够被第三方组织host,作为共有或者私有的registry,下面就是一些registries:
也就是说registry是一种存储docker image的服务,可以包括ubuntu、httpd等不同类型
Repository:
A collection of related images (usually providing different versions of the same application or service).
Docker repository is a collection of different docker images with same name, that have different tags.
也就是说repository是关于同一种镜像(如python)的不同版本”tag“的“集合地”,例如 https://hub.docker.com/r/library/python/tags/。这里有许多不同tag的官方python镜像,官方python repository中所有的版本都位于Docker hub这个registry内!
Tag:
An alphanumeric identifier (字母数字的标志符)attached to images within a repository (e.g., 14.04 or stable ).
Tip:对于 [image name] = [repository] : [tag] ,其中的“repository”是对镜像而言,某一个镜像可以有好多的tag 所以有一种“仓库”的概念在里面,看某些书的时候会发现,有这样的的语句“每个repository可以有多个tag”。有过创建自己的私有registry经历的就会知道,我们会重新“命名”我们的本地的image,例如:myregistryhost:5000/namespace/repo-name:tag;此外,我们在docker hub 上面上传自己的docker 镜像的时候也会填上自己的 namespace(用户名),即你在docker hub上面注册的账号。
本文参考网址:https://stackoverflow.com/questions/34004076/difference-between-docker-registry-and-repository