随笔分类 -  docker

上一页 1 ··· 4 5 6 7 8 9 下一页

摘要:1.[root@containerd busybox]# cd /root/busybox 2.利用containerd cli (/usr/local/bin/ctr)运行容器 [root@containerd busybox]# ctr run -t -d --rootfs rootfs bus 阅读全文

posted @ 2020-10-19 19:51 tycoon3 阅读(330) 评论(0) 推荐(0)

摘要:root@ubuntu:/home/ubuntu# tree . . ├── containerddemo │ ├── main │ └── main.go ├── dirA │ ├── b.txt │ └── x.txt ├── dirB │ ├── bb.log │ ├── b.txt │ └─ 阅读全文

posted @ 2020-10-18 10:07 tycoon3 阅读(343) 评论(0) 推荐(0)

摘要:# mkdir rootfs # docker export $(docker create busybox) | tar -C rootfs -xvf - # runc spec 查不到mount信息 root@ubuntu:~# mount | grep 'container\/rootfs' 阅读全文

posted @ 2020-10-17 11:58 tycoon3 阅读(461) 评论(0) 推荐(0)

摘要:参考https://www.cnblogs.com/sparkdev/p/9063042.html Starting containerd You can download one of the latest builds for containerd on the github releases  阅读全文

posted @ 2020-10-17 11:45 tycoon3 阅读(187) 评论(0) 推荐(0)

摘要:2020 IT邦幫忙鐵人賽 Kubernetes 原理分析系列文章 kubernetes 探討 Container & Open Container Initiative Container Runtime Interface Container Network Interface Containe 阅读全文

posted @ 2020-10-17 11:32 tycoon3 阅读(991) 评论(0) 推荐(0)

摘要:转载https://segmentfault.com/a/1190000023618092 Containerd 模块从 docker 中分离出来后,功能变得更加丰富,依赖者变得更加广泛,不仅仅是docker在使用,可以看到在云原生应用中涉及到容器技术时基本都在依赖 containerd。 图片来源 阅读全文

posted @ 2020-10-17 11:27 tycoon3 阅读(1145) 评论(0) 推荐(0)

摘要:Kubernetes 通过容器运行时(container runtime)来启动和管理容器。官方文档列举了以下几种 runtime:Docker,CRI-O,Containerd,fraki。它们之间有什么区别和联系呢?经常会看到 OCI、CRI 这些缩写,这些和容器、docker 到底是什么关系呢 阅读全文

posted @ 2020-10-17 11:11 tycoon3 阅读(1584) 评论(0) 推荐(0)

摘要:创建一个包含两个容器的 Pod 在这个练习中,你会创建一个包含两个容器的 Pod。两个容器共享一个卷用于他们之间的通信。 Pod 的配置文件如下: apiVersion: v1 kind: Pod metadata: name: two-containers spec: restartPolicy: 阅读全文

posted @ 2020-10-17 10:43 tycoon3 阅读(536) 评论(0) 推荐(0)

摘要:root@ubuntu:/opt/gopath/src/github.com/kata-containers/tests/.ci# go version go version go1.14.6 linux/arm64 root@ubuntu:/home/ubuntu# crictl version 阅读全文

posted @ 2020-10-16 17:41 tycoon3 阅读(881) 评论(0) 推荐(0)

摘要:日志 tail -n 50 /var/log/syslog 无containerd root@ubuntu:/etc/containerd# ps -elf | grep kube 0 S root 55425 37885 27 80 0 - 35323 futex_ 15:36 pts/1 00: 阅读全文

posted @ 2020-10-16 15:38 tycoon3 阅读(584) 评论(0) 推荐(0)

摘要:root@ubuntu:~/kata# go get github.com/containerd/containerd root@ubuntu:~/kata# pt-get install btrfs-tools Command 'pt-get' not found, did you mean: c 阅读全文

posted @ 2020-10-15 20:39 tycoon3 阅读(1334) 评论(0) 推荐(0)

摘要:root@ubuntu:~# kubectl get pods -A -o jsonpath="{.items[*].spec.containers[*].image}" \ > | tr -s '[[:space:]]' '\n' | sort | uniq > image-list.txt ro 阅读全文

posted @ 2020-10-15 16:23 tycoon3 阅读(948) 评论(0) 推荐(0)

摘要:root@ubuntu:~# ps -elf | grep crictl 0 S root 58960 38101 0 80 0 - 1097 pipe_w 15:28 pts/2 00:00:00 grep --color=auto crictl root@ubuntu:~# whereis cr 阅读全文

posted @ 2020-10-15 15:31 tycoon3 阅读(494) 评论(0) 推荐(0)

摘要:General dependencies Starting point is a vanilla Ubuntu >=16.04 installation. sudo apt install -y unzip tar btrfs-tools libseccomp2 socat util-linux a 阅读全文

posted @ 2020-10-15 15:27 tycoon3 阅读(191) 评论(0) 推荐(0)

摘要:root@ubuntu:~# docker images --digests | grep coredns coredns/coredns coredns-arm64 sha256:e98e05b50afc6606d3e0a66e264175910651746262e4a4823299ec6c827 阅读全文

posted @ 2020-10-15 14:50 tycoon3 阅读(808) 评论(0) 推荐(0)

摘要:root@ubuntu:~# ctr images list | grep redis docker.io/library/redis:latest application/vnd.docker.distribution.manifest.list.v2+json sha256:33ca074e60 阅读全文

posted @ 2020-10-15 10:39 tycoon3 阅读(3513) 评论(0) 推荐(0)

摘要:n an environment where internet access is not reliable or when you have a restricted internet access like when using Proxy servers, or if your Kuberne 阅读全文

posted @ 2020-10-15 09:50 tycoon3 阅读(995) 评论(0) 推荐(0)

摘要:root@ubuntu:/home/ubuntu# ps -elf | grep control 4 S root 34534 34463 1 80 0 - 53539 futex_ 09:02 ? 00:00:20 kube-controller-manager --allocate-node-c 阅读全文

posted @ 2020-10-15 09:38 tycoon3 阅读(228) 评论(0) 推荐(0)

摘要:containerd而非docker,需要离线导入镜像 解决原理https://segmentfault.com/a/1190000019534913ctr --namespace=k8s.io images ls 获取到你需要的镜像名称和版本之后 (参见后面的排查技巧) docker pull m 阅读全文

posted @ 2020-10-14 15:45 tycoon3 阅读(15386) 评论(0) 推荐(0)

摘要:root@ubuntu:~# netstat -aux | grep containerd.sock unix 2 [ ACC ] STREAM LISTENING 2959473 /run/containerd/containerd.sock unix 2 [ ACC ] STREAM LISTE 阅读全文

posted @ 2020-10-14 14:31 tycoon3 阅读(299) 评论(0) 推荐(0)

上一页 1 ··· 4 5 6 7 8 9 下一页

导航