摘要:perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "en_HK:en", LC_ALL = (unset), LANG = "en_HK.UT
阅读全文
摘要:AEP简介 AEP是Intel推出的一种新型的非易失Optane Memory设备,又被称作Apache Pass,所以一般习惯称作AEP。在这之前也有类似的设备称作NVDIMM或PMEM,目前Linux创建的AEP设备节点也是叫做pmem(如/dev/pmem0),所以本文中NVDIMM或PMEM
阅读全文
摘要:{ “device”:”tap1”, “name”:”eth1”, “IPAddresses”:[{“address”:”172.17.1.10”,”mask”:”24”}], “mtu”:1300, “hwAddr”:”02:42:20:6f:a2:80” “vhostUserSocket”:”/
阅读全文
摘要:https://github.com/kata-containers/runtime/issues/1876 插件扩展 https://m.php.cn/manual/view/36157.html 网络驱动插件与群模式 Docker 1.12增加了对群集管理和编排的支持,称为群集模式。以群集模式运
阅读全文
摘要:--device挂载的设备,容器内的进程通常没有权限操作,需要使用--cap-add开放相应的权限,如下 Kubernetes下使用device Kubernetes支持--device问题在社区上讨论了很久,感兴趣的可以看下#5607。当前的解决方案是使用device plugins机制来注册要访
阅读全文
摘要:func (r *runner) run(config *specs.Process) (int, error) { if err := r.checkTerminal(config); err != nil { r.destroy() return -1, err } process, err :
阅读全文
摘要:// 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
阅读全文
摘要:go-nsenter https://github.com/Devatoria/go-nsenter package main import ( "fmt" "github.com/Devatoria/go-nsenter" ) func main() { config := &nsenter.Co
阅读全文
摘要: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:/
阅读全文
摘要:package main import ( "flag" "os" "os/exec" "syscall" "github.com/sirupsen/logrus" ) func main() { var nsShell, nsHostName, rootPath string flag.Strin
阅读全文
摘要:root@ubuntu:/home/ubuntu# docker run -itd --name test ubuntu /bin/bash 86d1bf0df1c9ff0a705be14b5263473f5c2d2bbbcc01b7159494047d74a51647 root@ubuntu:/h
阅读全文
摘要:首先在 cpu 子系统下面创建了一个 halfapi 的子节点:cgcreate abc:abc -g cpu:halfapi。 然后在配置文件中写入配置数据:echo 50000 > /cgroup/cpu/halfapi/cpu.cfs_quota_us。cpu.cfs_quota_us中的默认
阅读全文
摘要:换成 docker export $(docker create busybox) | tar -C rootfs -xvf - 之前移植了 filesystem/initrd,用的 busybox 是 v1.25.0,但运行一个最简单的 Hello world 程序都提示 -/bin/sh: ./
阅读全文
摘要:UNIX socket that spans two different mount namespaces The “init” process can establish a communication channel between the parent namespace and the ch
阅读全文
摘要:挂载proc文件系统 前文中已经提到,如果你在新的PID namespace中使用ps命令查看,看到的还是所有的进程,因为与PID直接相关的/proc文件系统(procfs)没有挂载到与原/proc不同的位置。所以如果你只想看到PID namespace本身应该看到的进程,需要重新挂载/proc,命
阅读全文
摘要:nsenter https://www.cnblogs.com/sparkdev/p/9400673.html 与 namespace 相关的工具 unshare 命令unshare 命令把当前进程加入到一个新建的 namespace 中,然后运行指定的程序(不指定目标程序则运行系统的默认 shel
阅读全文
摘要:ubuntu@ubuntu:linux-5.4.60-89/drivers/input$ cat built-in.a !<thin> // 476 ` input.o/ input-compat.o/ input-mt.o/ input-poller.o/ ff-core.o/ mousedev.
阅读全文
摘要:// prepareRootfs sets up the devices, mount points, and filesystems for use // inside a new mount namespace. It doesn't set anything as ro. You must c
阅读全文
摘要:root@ubuntu:~# ls /dev/input/ by-id by-path event0 event1 event2 js0 mice mouse0 root@ubuntu:~# ls /dev/input/ by-id by-path event0 event1 event2 js0
阅读全文