Câu hỏi phỏng vấn Docker
Câu hỏi

What’s the difference between a repository and a registry?

Câu trả lời

The difference between a Docker repository and a Docker registry can be summarized as follows:

Docker Repository

  • Definition: A Docker repository is a collection of related Docker images that share the same name but are differentiated by tags. Each tag represents a different version of the image.
  • Function: Repositories are used to store and manage different versions of a Docker image. For example, a repository might contain images tagged as latest, v1.0, v2.0, etc.
  • Example: If you have a repository named myapp, it might contain images like myapp:latest, myapp:v1.0, and myapp:v2.0[1][2][3][5].

Docker Registry

  • Definition: A Docker registry is a service that stores Docker repositories. It is essentially a collection of repositories.
  • Function: Registries are used to host and distribute Docker images. They can be public or private and can be hosted by third parties or on-premises.
  • Example: Docker Hub, Google Container Registry, and Azure Container Registry are examples of Docker registries. These registries contain multiple repositories, each holding different versions of Docker images[1][2][3][4][5].

Key Differences

  • Scope: A ...
junior

junior

Gợi ý câu hỏi phỏng vấn

expert

How does Docker run containers in non-Linux systems?

middle

Explain a use case for Docker

junior

What is the difference between ‘docker run’ and ‘docker create’?

Bình luận

Chưa có bình luận nào

Chưa có bình luận nào