2020年11月24日

摘要: func (r *runner) run(config *specs.Process) (int, error) { if err := r.checkTerminal(config); err != nil { r.destroy() return -1, err } process, err : 阅读全文
posted @ 2020-11-24 20:34 tycoon3 阅读(245) 评论(0) 推荐(0)
摘要: // 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)

导航