汇总一些容易混淆的容器领域技术概念,希望对你有所帮助。
技术栈架构
生态对比
Ecosystem | Orchestration Service | Orchestration Agent | Container Engine | Container Runtime | CLI tools |
---|---|---|---|---|---|
OCI / CNCF | k8s | kubelet | containerd (CRI runtimes) | runc / kata (OCI runtimes) | ctr, crictl |
Docker | docker swarm | dockerd (docker CLI) | containerd | runc | docker |
LXD / Canonical | clusterd lxd | lxd | lxd | lxc | lxc |
OpenShift / Redhat | k8s | kubelet | CRI-O | runc | podman |
当然,这里列出的只是各个生态的默认技术栈,开源社区中还有各种项目让不同生态的组件互相组合协同工作。比如:
Mirantis/cri-dockerd: dockerd as a compliant Container Runtime Interface for Kubernetes (github.com)
automaticserver/lxe: Kubernetes CRI shim for lxd. Initially contributed by Automatic Server AG (http://www.automatic-server.com) (github.com)
[1] Container Runtimes Part 4: Kubernetes Container Runtimes & CRI (ianlewis.org)