二进制部署containerd与runc && ubuntu系统
coontainerd
| |
| root@ubuntu:~ |
| |
| |
| root@ubuntu:~ |
| |
| |
| |
| root@ubuntu:~ |
| |
| |
| root@ubuntu:~ |
| [Unit] |
| Description=containerd container runtime |
| Documentation=https://containerd.io |
| After=network.target local-fs.target |
| |
| [Service] |
| EnvironmentFile=-/usr/sbin/modprobe overlay |
| ExecStart=/usr/bin/containerd |
| Type=notify |
| Delegate=yes |
| KillMode=process |
| Restart=always |
| RestartSec=5 |
| LimitNPROC=infinity |
| LimitCORE=infinity |
| OOMScoreAdjust=-999 |
| [Install] |
| WantedBy=multi-user.target |
| |
| |
| root@ubuntu:~ |
| |
| |
| root@ubuntu:~ |
| |
| |
| root@ubuntu:~ |
| 153 [plugins."io.containerd.grpc.v1.cri".registry.mirrors] |
| 154 [plugins."io.containerd.grpc.v1.cri".registry.mirrors."docker.io"] |
| 155 endpoint = ["https://99162102.mirror.aliyuncs.com"] |
| |
| |
| root@ubuntu:~ |
| root@ubuntu:~ |
| |
| |
runc
| |
| [centos@worker0 ~]$ wget https://github.com/opencontainers/runc/releases/download/v1.1.4/runc.amd64 |
| |
| |
| root@ubuntu:~ |
| |
| |
| root@ubuntu:~ |
| |
| |
| root@ubuntu:~ |
| docker.io/library/alpine:latest: resolved |++++++++++++++++++++++++++++++++++++++| |
| index-sha256:b95359c2505145f16c6aa384f9cc74eeff78eb36d308ca4fd902eeeb0a0b161b: done |++++++++++++++++++++++++++++++++++++++| |
| manifest-sha256:3d426b0bfc361d6e8303f51459f17782b219dece42a1c7fe463b6014b189c86d: done |++++++++++++++++++++++++++++++++++++++| |
| layer-sha256:ca7dd9ec2225f2385955c43b2379305acd51543c28cf1d4e94522b3d94cce3ce: done |++++++++++++++++++++++++++++++++++++++| |
| config-sha256:bfe296a525011f7eb76075d688c681ca4feaad5afe3b142b36e30f1a171dc99a: done |++++++++++++++++++++++++++++++++++++++| |
| elapsed: 70.1s total: 1.0 Mi (14.7 KiB/s) |
| |
| |
| root@ubuntu:~ |
| / |
| |
containerd客户端工具扩展
crictl
| |
| |
| root@ubuntu:~ |
| |
| |
| root@ubuntu:~ |
| |
| |
| 默认链接是 unix:///var/run/dockershim.sock |
| 但是containerd的在以下路径 不修改的话会报错 他找不到containerd |
| root@ubuntu:~ |
| /run/containerd/containerd.sock |
| |
| |
| root@ubuntu:~ |
| runtime-endpoint: "unix:///run/containerd/containerd.sock" |
| image-endpoint: "unix:///run/containerd/containerd.sock" |
| timeout: 10 |
| debug: false |
| |
| |
| root@ubuntu:~ |
| Image is up to date for sha256:50fe74b50e0d0258922495297efbb9ebc3cbd5742103df1ca54dc21c07d24575 |
| root@ubuntu:~ |
| IMAGE TAG IMAGE ID SIZE |
| docker.io/library/nginx 1.20.2 50fe74b50e0d0 56.7MB |
nerdctl-推荐使用
| root@ubuntu:~ |
| root@ubuntu:~ |
| root@ubuntu:~ |
| root@ubuntu:~ |
| WARN[0000] unable to determine buildctl version: exec: "buildctl": executable file not found in $PATH |
| Client: |
| Version: v1.0.0 |
| OS/Arch: linux/amd64 |
| Git commit: c00780a1f5b905b09812722459c54936c9e070e6 |
| buildctl: |
| Version: |
| |
| Server: |
| containerd: |
| Version: v1.6.9 |
| GitCommit: 1c90a442489720eec95342e1789ee8a5e1b9536f |
| runc: |
| Version: 1.1.1 |
| GitCommit: v1.1.0-20-g52de29d7 |
2.21 cni-安装
| root@ubuntu:~ |
| root@ubuntu:~ |
| root@ubuntu:~ |
| |
| |
| root@ubuntu:~ |
| docker.io/library/nginx:latest: resolved |++++++++++++++++++++++++++++++++++++++| |
| index-sha256:943c25b4b66b332184d5ba6bb18234273551593016c0e0ae906bab111548239f: done |++++++++++++++++++++++++++++++++++++++| |
| manifest-sha256:06aa2038b42f1502b59b3a862b1f5980d3478063028d8e968f0810b9b0502380: done |++++++++++++++++++++++++++++++++++++++| |
| config-sha256:76c69feac34e85768b284f84416c3546b240e8cb4f68acbbe5ad261a8b36f39f: done |++++++++++++++++++++++++++++++++++++++| |
| layer-sha256:8e3ed6a9e43aaf17bc2175fa2c7ae2ee24cff4d32bf82adf1ea689db4dcf15e1: done |++++++++++++++++++++++++++++++++++++++| |
| layer-sha256:e9995326b091af7b3ce352fad4d76cf3a3cb62b7a0c35cc5f625e8e649d23c50: done |++++++++++++++++++++++++++++++++++++++| |
| layer-sha256:71689475aec267fae8891b2b3d2bef78c6b3d57c077129ff9cd69b6e5253dfa7: done |++++++++++++++++++++++++++++++++++++++| |
| layer-sha256:f88a23025338bc64e97dc350efac90275df227949d7c835b8b1f6fbc4d2439c0: done |++++++++++++++++++++++++++++++++++++++| |
| layer-sha256:0df440342e265c89de536643c3376dadf44c810fe2fb2b2ee44711f8661ce531: done |++++++++++++++++++++++++++++++++++++++| |
| layer-sha256:eef26ceb3309d6e72a4402c3f16b047416adecaf91bc5360ebd4205d1ef5e310: done |++++++++++++++++++++++++++++++++++++++| |
| elapsed: 30.2s total: 54.2 M (1.8 MiB/s) |
| e0caa4dad802b4b064ad1ff058f05b05ef58759f2016870c2888883924e7f8c6 |
| |
| root@ubuntu:~ |
| CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES |
| e0caa4dad802 docker.io/library/nginx:latest "/docker-entrypoint.…" 19 seconds ago Up 0.0.0.0:80->80/tcp nginx-web1 |
| |
| root@ubuntu:~ |
| root@e0caa4dad802:/ |
| |
| |

| root@ubuntu:~ |
| docker.io/library/tomcat:7.0.88-alpine: resolved |++++++++++++++++++++++++++++++++++++++| |
| index-sha256:fbea9924c4e324b2eee05fbb4317d0fd768f15387f8c77a5d6ee4c4cbdc5a0bc: done |++++++++++++++++++++++++++++++++++++++| |
| manifest-sha256:3a1bfd26628b05080841b61ce33a581b137243ef77967a86a7e0ab06148d6a8f: done |++++++++++++++++++++++++++++++++++++++| |
| config-sha256:2c15647bb9a382cf774b7906e6489e2f5491ac6e66593c6a66d6c0d61989c8f1: done |++++++++++++++++++++++++++++++++++++++| |
| layer-sha256:44e6d293805b58dc5838472788c76c025026ac2c14044d598127d06066a25d5f: done |++++++++++++++++++++++++++++++++++++++| |
| layer-sha256:911c6d0c7995e5d9763c1864d54fb6deccda04a55d7955123a8e22dd9d44c497: done |++++++++++++++++++++++++++++++++++++++| |
| layer-sha256:4001add52a901363833fa030b1451162d380a5423906a45f64e090a5ee9efb74: done |++++++++++++++++++++++++++++++++++++++| |
| layer-sha256:cbee32cff593b645ca1694f052ad0545fe5a7bfd1fdc9087624013627ddb041c: done |++++++++++++++++++++++++++++++++++++++| |
| layer-sha256:6334d5b42b354493d40f92ab8d15c307273f5ff11f70421d1bddacc91416adb8: done |++++++++++++++++++++++++++++++++++++++| |
| layer-sha256:3ae691a546b360850dc64c3f25ebab76406ea37a6abaf5a00109627dcfea839f: done |++++++++++++++++++++++++++++++++++++++| |
| elapsed: 30.8s total: 73.8 M (2.4 MiB/s) |
| 1594ed7c408e04b188e6454472871b01ff82b74ea654a52707c7f755964e2eee |
| |
