containerd / containerd/nri

StartContainer hook cant be implemented in kata runtime

Open
#64 2 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
406
Forks
102
Avg merge
1d 10h
Merged PRs (30d)
8

Description

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](https://github.com/kata-containers/kata-containers/issues/8869)

Contributor guide

No contributing guide indexed for this repository

Research direction

Read the containerd-shim-kata-v2 hook handling and the linked kata-containers #8869 issue first. Confirm why StartContainer is set to nil and locate any existing hook-related coverage; completion means establishing the expected StartContainer hook behavior for the kata runtime, with a test or documented limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.