会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
rincloud
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
···
9
下一页
2025年3月22日
Special Purpose Operating System Working Group Charter
摘要: 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
阅读(10)
评论(0)
推荐(0)
2025年3月19日
golang 不同参数并行执行 相同参数串行执行
摘要: package main import ( "fmt" "sync" "time" ) var ( // 使用 sync.Map 存储参数到锁的映射(并发安全) locks = sync.Map{} ) // SafeExecute 保证相同参数的调用互斥执行 func SafeExecute(pa
阅读全文
posted @ 2025-03-19 09:33 rincloud
阅读(17)
评论(0)
推荐(0)
2025年2月27日
ctr attach流程
摘要: 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
阅读(29)
评论(0)
推荐(0)
2025年2月24日
禁止cri插件
摘要: ❯ 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
阅读(15)
评论(0)
推荐(0)
2025年1月9日
golang if作用域
摘要: 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
阅读(17)
评论(0)
推荐(0)
2024年12月25日
runc-sandboxer 进程树
摘要: 进程树 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
阅读(49)
评论(0)
推荐(0)
2024年11月7日
golang oom监控实现
摘要: 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
阅读(67)
评论(0)
推荐(0)
2024年10月11日
RUST Some None 和OK
摘要: Rust 的 Option 类型是一个枚举,有两个变体:Some 和 None ,表示值存在和不存在。 Result是一个枚举(enum),有两个变体:Ok和Err, 表示错误类型为空和err
阅读全文
posted @ 2024-10-11 15:43 rincloud
阅读(84)
评论(0)
推荐(0)
2024年6月24日
intellij rust 安装 不用 RustRover
摘要: 下载idea rust 插件:https://plugins.jetbrains.com/plugin/8182--deprecated-rust 下载idea:https://www.jetbrains.com/zh-cn/idea/download/other.html qt.qpa.scree
阅读全文
posted @ 2024-06-24 13:44 rincloud
阅读(211)
评论(0)
推荐(0)
2024年6月21日
rust 常用命令
摘要: # cargo Cargo是Rust的包管理器,它可以帮助开发者轻松地构建、依赖管理和打包 Rust 项目。以下是一些常用的Cargo指令: cargo new:创建一个新的 Rust 项目cargo build:编译当前项目cargo run:编译并运行当前项目cargo test:运行测试套件c
阅读全文
posted @ 2024-06-21 22:10 rincloud
阅读(502)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
···
9
下一页
公告