K8s(Kubernetes), docker中的registry是什么意思?和windows中的注册表registry有什么区别?

相信很多初学者会对K8s(Kubernetes)中的registry这个概念感到很困惑,因为翻译成中文实在是不好翻译,直译“注册”就让人觉得非常费解。网上对于这方面的中文资料也很少。

1 windows 中的registry

首先可以从一个近似地概念进行理解:也就是windows系统中的注册表,用的也是这个单词,registry。
Wiki上对windows注册表的定义:

The Windows Registry (Registry Editor or regedit.exe) is a hierarchical database that stores low-level settings for the Microsoft Windows operating system and for applications that opt to use the registry.
The kernel, device drivers, services, Security Accounts Manager, and user interfaces can all use the registry. The registry also allows access to counters for profiling system performance.
In other words, the registry or Windows Registry contains information, settings, options, and other values for programs and hardware installed on all versions of Microsoft Windows operating systems. For example, when a program is installed, a new subkey containing settings such as a program’s location, its version, and how to start the program, are all added to the Windows Registry.

重点翻译一下这两句加粗的话:
Windows注册表(注册表编辑器或regedit.exe)是一个分层数据库,用于存储Microsoft Windows操作系统和选择使用注册表的应用程序的底层设置。
换句话说,注册表或Windows注册表包含安装在所有版本Microsoft Windows操作系统上的程序和硬件的信息、设置、选项和其他值。

2. k8s中的registry

至少有三种类型的registry,Kubernetes Registry , Docker Registry还有container registry,下面对这几个registry都做一下解释。
下面两个概念的解释是参考了参考资料

A Docker registry contains Docker images that you can pull in order to use them in your deployment. The registry is a stateless, scalable server side application that stores and lets you distribute Docker images.

Docker registry包含Docker 镜像,您可以在部署中使用它们。Registry 是一个无状态的、可伸缩的服务器端应用程序,用于存储和分发Docker映像。

The Kubernetes registry is an image pull secret that your deployment uses to authenticate with a Docker registry.

Kubernetes注册表是一个镜像拉取secret(什么是secret参见:kubernetes设计理念,deployment是pod中的一层)使用它与Docker registry进行身份验证。

下面这个是参考资料2中的内容。

A container registry is a repository—or collection of repositories—used to store and access container images.

扫描二维码关注公众号,回复: 15132312 查看本文章

容器registry 是一个存储库(或存储库的集合),用于存储和访问容器镜像。在docker中我们看到的最多的应该是这一种。container registry也有叫做image registry,在k8s官方文档上对于image的介绍还有private registry以及public registry的概念,说明这里的registry不是别的意思,就是collection的意思

3. 总结

registry在不同的场景下含义不同,对于k8s来说非常简单,就是存储仓库的意思,其他场景(如Windows下可能还包含了一些配置信息,如果还有其他含义,请留言交流~~

4. 参考资料

  1. Kubernetes Registry and Docker Registry
  2. what-is-a-container-registry

猜你喜欢

转载自blog.csdn.net/Sansipi/article/details/127039116