docker--docker架構

  • 2019 年 11 月 22 日
  • 筆記

4 docker 架構

Docker uses a client-server architecture. The Docker client talks to the Docker daemon, which does the heavy lifting of building, running, and distributing your Docker containers. The Docker client and daemon can run on the same system, or you can connect a Docker client to a remote Docker daemon. The Docker client and daemon communicate using a REST API, over UNIX sockets or a network interface. (Docker使用客戶端 - 伺服器架構。 Docker客戶端與Docker守護進 程通訊,後者負責構建,運行和分發Docker容器。 Docker客戶端和守護程式可以在同一 系統上運行,也可以將Docker客戶端連接到遠程Docker守護程式。 Docker客戶端和守 護程式使用REST API,通過UNIX套接字或網路介面進行通訊。)

4.1 docker daemon

The Docker daemon ( dockerd ) listens for Docker API requests and manages Docker objects such as images, containers, networks, and volumes. A daemon can also communicate with other daemons to manage Docker services. (Docker守護程 序(dockerd)偵聽Docker API請求並管理Docker對象,如影像,容器,網路和卷。 守 護程式還可以與其他守護程式通訊以管理Docker服務。)

4.2 docker client

The Docker client ( docker ) is the primary way that many Docker users interact with Docker. When you use commands such as docker run , the client sends these commands to dockerd , which carries them out. The docker command uses the Docker API. The Docker client can communicate with more than one daemon. (Docker客戶端(docker)是許多Docker用戶與Docker交互的主要方式。 當您使用諸如 docker run之類的命令時,客戶端會將這些命令發送到dockerd,後者將其執行。 docker命令使用Docker API。 Docker客戶端可以與多個守護進程通訊。)

4.3 docker registry

A Docker registry stores Docker images. Docker Hub is a public registry that anyone can use, and Docker is configured to look for images on Docker Hub by default. You can even run your own private registry. If you use Docker Datacenter (DDC), it includes Docker Trusted Registry (DTR). When you use the docker pull or docker run commands, the required images are pulled from your configured registry. When you use the docker push command, your image is pushed to your configured registry.(Docker註冊表存儲 Docker鏡像。 Docker Hub是任何人都可以使用的公共註冊中心,Docker配置為默認在 Docker Hub上查找影像。 您甚至可以運行自己的私人註冊表。 如果您使用Docker Datacenter(DDC),它包括Docker Trusted Registry(DTR)。使用docker pull或 docker run命令時,將從配置的註冊表中提取所需的映像。 使用docker push命令時, 影像將被推送到配置的註冊表。)

Tags: