上一页 1 ··· 70 71 72 73 74 75 76 77 78 ··· 164 下一页

2020年11月24日

摘要: // execSetns runs the process that executes C code to perform the setns calls // because setns support requires the C process to fork off a child and 阅读全文
posted @ 2020-11-24 19:48 tycoon3 阅读(794) 评论(0) 推荐(0)
摘要: go-nsenter https://github.com/Devatoria/go-nsenter package main import ( "fmt" "github.com/Devatoria/go-nsenter" ) func main() { config := &nsenter.Co 阅读全文
posted @ 2020-11-24 19:29 tycoon3 阅读(292) 评论(0) 推荐(0)
摘要: root@ubuntu:/home/ubuntu/test/learning/namespaces/Mount_001# go run Mount_001.go run ERRO[0000] no such file or directory root@nshost:/# root@nshost:/ 阅读全文
posted @ 2020-11-24 16:58 tycoon3 阅读(156) 评论(0) 推荐(0)
摘要: package main import ( "flag" "os" "os/exec" "syscall" "github.com/sirupsen/logrus" ) func main() { var nsShell, nsHostName, rootPath string flag.Strin 阅读全文
posted @ 2020-11-24 16:36 tycoon3 阅读(456) 评论(0) 推荐(0)
摘要: root@ubuntu:/home/ubuntu# docker run -itd --name test ubuntu /bin/bash 86d1bf0df1c9ff0a705be14b5263473f5c2d2bbbcc01b7159494047d74a51647 root@ubuntu:/h 阅读全文
posted @ 2020-11-24 15:59 tycoon3 阅读(440) 评论(0) 推荐(0)
摘要: RunC 源码通读指南之 Cgroup RunC 源码通读指南之 NameSpace libcontainer/process_linux.go:282 func (p *initProcess) start() error { defer p.messageSockPair.parent.Clos 阅读全文
posted @ 2020-11-24 15:10 tycoon3 阅读(507) 评论(0) 推荐(0)

2020年11月23日

摘要: 首先在 cpu 子系统下面创建了一个 halfapi 的子节点:cgcreate abc:abc -g cpu:halfapi。 然后在配置文件中写入配置数据:echo 50000 > /cgroup/cpu/halfapi/cpu.cfs_quota_us。cpu.cfs_quota_us中的默认 阅读全文
posted @ 2020-11-23 17:31 tycoon3 阅读(991) 评论(0) 推荐(0)
摘要: sharedVolume := &grpc.Storage{ Driver: kataVirtioFSDevType, Source: mountGuestTag, MountPoint: kataGuestSharedDir(), Fstype: typeVirtioFS, Options: sh 阅读全文
posted @ 2020-11-23 15:35 tycoon3 阅读(600) 评论(0) 推荐(0)
摘要: const ( driver9pType = "9p" driverVirtioFSType = "virtio-fs" driverBlkType = "blk" driverBlkCCWType = "blk-ccw" driverMmioBlkType = "mmioblk" driverSC 阅读全文
posted @ 2020-11-23 11:21 tycoon3 阅读(124) 评论(0) 推荐(0)

2020年11月20日

摘要: 换成 docker export $(docker create busybox) | tar -C rootfs -xvf - 之前移植了 filesystem/initrd,用的 busybox 是 v1.25.0,但运行一个最简单的 Hello world 程序都提示 -/bin/sh: ./ 阅读全文
posted @ 2020-11-20 16:35 tycoon3 阅读(324) 评论(0) 推荐(0)
上一页 1 ··· 70 71 72 73 74 75 76 77 78 ··· 164 下一页

导航