docker_practice/arch/README.md

10 lines
554 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#架构
docker采用了C/S架构包括client端和daemon端。
docker daemon作为server端接受来自client的请求并处理这些请求创建、运行、分发容器
client端和server端既可以运行在一个机器上也可通过socket或者RESTful API来进行通信。
![Docker基本架构](../images/docker_arch.png)
Docker daemon一般在宿主主机后台运行等待接收来自client端的消息。
Docker client 则为用户提供一系列可执行命令用户用这些docker命令实现跟docker daemon交互。