`runc state` 在其进程退出后将 CRIU 还原的容器报告为"运行中"
作者: logical-misha创建于 2026年7月14日更新于 2026年7月15日
标签llm-generated
if !c.hasInit() { return c.state.transition(&stoppedState{c: c}) // process is gone -> should become stopped }
Every state's `transition()` sets `c.state = s` on an accepted transition — **except
`restoredState.transition()`**, which returns `nil` without updating `c.state`
(`libcontainer/state_linux.go:207-213`):内容来源: opencontainers/runc