nri icon indicating copy to clipboard operation
nri copied to clipboard

StartContainer hook cant be implemented in kata runtime

Open taenzeyang opened this issue 2 years ago • 2 comments

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

taenzeyang avatar Jan 11 '24 09:01 taenzeyang

That sounds like a bug in the Kata runtime, not a bug in NRI?

samuelkarp avatar May 23 '25 21:05 samuelkarp

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.

mythi avatar May 26 '25 04:05 mythi