Difference between Docker registry and repository

后端 未结 7 1876
醉酒成梦
醉酒成梦 2020-12-22 20:17

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

7条回答
  •  Happy的楠姐
    2020-12-22 20:54

    From the book Using Docker, Developing and deploying Software with Containers

    Registries, Repositories, Images, and Tags

    There is a hierarchical system for storing images. The following terminology is used:

    Registry

    A service responsible for hosting and distributing images. The default registry is the Docker Hub.

    Repository

    A collection of related images (usually providing different versions of the same application or service).

    Tag

    An alphanumeric identifier attached to images within a repository (e.g., 14.04 or stable ).

    So the command docker pull amouat/revealjs:latest will download the image tagged latest within the amouat/revealjs repository from the Docker Hub registry.

提交回复
热议问题