上一页 1 2 3 4 5 6 ··· 9 下一页
摘要: 来源:https://openanolis.cn/sig/Cloud-Kernel/doc/721476230897467475 1.1 准备Anolis OS环境 如果您正在使用Anolis OS,请忽视这个步骤。 如果您没有使用Anolis OS,我们强烈建议在Anolis OS环境下进行操作, 阅读全文
posted @ 2025-04-24 20:15 rincloud 阅读(256) 评论(0) 推荐(0)
摘要: func handleSignals(signals chan os.Signal) { go func() { for { select { case s := <-signals: fmt.Printf("received signal %v ", s) switch s { case sysc 阅读全文
posted @ 2025-04-22 19:07 rincloud 阅读(22) 评论(0) 推荐(0)
摘要: package main import ( "errors" "fmt" "github.com/containerd/containerd/errdefs" ) func main() { err := fmt.Errorf("snapshotter was not found: %w", err 阅读全文
posted @ 2025-04-03 21:07 rincloud 阅读(51) 评论(0) 推荐(0)
摘要: https://tag-runtime.cncf.io/wgs/spos/charter/# 以下是容器操作系统领域中流行的开源项目列表: Bottlerocket 瓶火箭 Flatcar Flatcar的 Talos Kairos openSUSE MicroOS Google’s Contain 阅读全文
posted @ 2025-03-22 14:25 rincloud 阅读(15) 评论(0) 推荐(0)
摘要: package main import ( "fmt" "sync" "time" ) var ( // 使用 sync.Map 存储参数到锁的映射(并发安全) locks = sync.Map{} ) // SafeExecute 保证相同参数的调用互斥执行 func SafeExecute(pa 阅读全文
posted @ 2025-03-19 09:33 rincloud 阅读(24) 评论(0) 推荐(0)
摘要: cio.WithStdio 即为opt 因为 func NewAttach(opts ...Opt) task, err := container.Task(ctx, cio.NewAttach(cio.WithStdio)) if err != nil { return err } 1. cio. 阅读全文
posted @ 2025-02-27 11:16 rincloud 阅读(34) 评论(0) 推荐(0)
摘要: ❯ cat /etc/containerd/config.toml version = 3 root = '/var/lib/containerd' state = '/run/containerd' temp = '' plugin_dir = '' disabled_plugins = ["io 阅读全文
posted @ 2025-02-24 10:26 rincloud 阅读(28) 评论(0) 推荐(0)
摘要: package main import ( "fmt" ) func main() { x := 0 if x := test(); x < 0 { fmt.Println("first") fmt.Println(x) } else { fmt.Println("second") fmt.Prin 阅读全文
posted @ 2025-01-09 10:48 rincloud 阅读(26) 评论(0) 推荐(0)
摘要: 进程树 root 33194 0.0 0.0 1166232 9472 pts/5 Sl 23:51 0:00 | | \_ runc-sandboxer --listen /run/runc-sandboxer.sock --dir /run/kuasar-runc root 33195 0.0 阅读全文
posted @ 2024-12-25 23:56 rincloud 阅读(51) 评论(0) 推荐(0)
摘要: package main import ( "bytes" "fmt" "io/ioutil" "os" "golang.org/x/sys/unix" ) func main(){ var events [128] unix.EpollEvent var buf [8]byte //unix.EF 阅读全文
posted @ 2024-11-07 18:35 rincloud 阅读(71) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 9 下一页