Có 3 loại container runtime:
- Low-Level Container Runtimes: runC, crun, containerd
- High-Level Container Runtimes: CRI-O, Windows Containers và Hyper-V Containers
- Sandboxed và Virtualized Container Runtimes: Sandboxed runtimes, Virtualized runtimes
K8s đã không còn hỗ trợ Docker từ phiên bản 1.24.
Do đó bạn cần tìm 1 công nghệ thích hợp để thay thế. Theo mình tìm hiểu có những option sau:
- containerd: https://containerd.io/
- CRI-O: https://cri-o.io/
CRI-O is an implementation of the Kubernetes CRI (Container Runtime Interface) to enable using OCI (Open Container Initiative) compatible runtimes. It is a lightweight alternative to using Docker as the runtime for kubernetes - Buildah specializes in building OCI images. Buildah's commands replicate all of the commands that are found in a Dockerfile. This allows building images with and without Dockerfiles while not requiring any root privileges. Buildah’s ultimate goal is to provide a lower-level coreutils interface to build images. The flexibility of building images without Dockerfiles allows for the integration of other scripting languages into the build process. Buildah follows a simple fork-exec model and does not run as a daemon but it is based on a comprehensive API in golang, which can be vendored into other tools.
- Podman specializes in all of the commands and functions that help you to maintain and modify OCI images, such as pulling and tagging. It also allows you to create, run, and maintain those containers created from those images. For building container images via Dockerfiles, Podman uses Buildah's golang API and can be installed independently from Buildah.
- LXD
Tham khảo
https://viblo.asia/p/kubernetes-da-khai-tru-docker-nhung-dieu-ban-can-biet-BQyJK92wVMe
https://onlyhow.net/gioi-thieu-ve-thung-chua-lxd-cua-ubuntus
Trả lờiXóa