An industry-standard container runtime with an emphasis on simplicity, robustness and portability: https://containerd.io/
Installation
nerdctl is a Docker-compatible CLI for containerd. The release full version has been included dependencies such as containerd, runc, and CNI.
Maybe nerdctl is not the latest version, you can install the latest version step by step by the following instructions:
https://github.com/containerd/containerd/blob/main/docs/getting-started.md
1 | #https://github.com/containerd/containerd/blob/main/docs/getting-started.md |
cat Dockerfile:
1 | FROM nginx:alpine |
Relocated /var/lib/containerd:
1 | systemctl stop containerd |
Usage
1 | #Build: |
The native containderd command:
1 | #https://cloudyuga.guru/blogs/containerd-and-ctr/ |
Reference
- https://github.com/containerd/containerd/blob/main/docs/getting-started.md
- https://www.qikqiak.com/post/containerd-usage/
- https://kubernetes.io/zh/docs/tasks/administer-cluster/migrating-from-dockershim/change-runtime-containerd/
- https://www.51cto.com/article/678323.html
- https://developer.51cto.com/article/700609.html
- https://www.jianshu.com/p/4c31554df8c9