Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StartContainer hook cant be implemented in kata runtime #64

Open
taenzeyang opened this issue Jan 11, 2024 · 0 comments
Open

StartContainer hook cant be implemented in kata runtime #64

taenzeyang opened this issue Jan 11, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@taenzeyang
Copy link

taenzeyang commented Jan 11, 2024

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 taenzeyang changed the title Why can't hooks be implemented in kata runtime? StartContainer hook cant be implemented in kata runtime Feb 1, 2024
@mikebrow mikebrow added enhancement New feature or request labels May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants