nri
nri copied to clipboard
StartContainer hook cant be implemented in kata runtime
The following codes can successfully implement hooks in runc runtime, but do not work in kata runtime.
spec.Hooks.StartContainer = append(spec.Hooks.StartContainer, rspec.Hook{
Path: "/usr/bin/mkdir",
Args: []string{"/usr/bin/mkdir", "/run/test"},
Env: nil,
Timeout: nil,
})
runc version: 1.1.10 kata version: 3.2.0
StartContainer hook is set to nil by containerd-shim-kata-v2 and hasn't been executed, link issue: kata-containers/kata-containers #8869
That sounds like a bug in the Kata runtime, not a bug in NRI?
That sounds like a bug in the Kata runtime, not a bug in NRI?
+1. I think it's enough to track this in the kata-runtime repo.