Closed zvonkok closed 4 months ago
env
works but hooks
does not.
Reproducer: cdi inject config.json nvidia.com/pgpu=0 -o json
Let me fix it !
Hi @zvonkok my error for the hooks. I have caught the bug, is that when there's no existing hooks, we need directly set the start_container hook with the argument hook: Hook. Please see the PR#29 for details.
I can see that hooks are now applied
"hooks": {
"createContainer": [
{
"path": "/bin/nvidia-ctk",
"args": [
"nvidia-ctk",
"hook",
"update-ldcache",
"--folder",
"/ib/x86_64-linux-gnu"
]
}
]
},
Hooks are not properly injected. There are global edits and local edits for the device. It looks like that Hooks are applied with the first round of edits but deleted by the second round of applying the containeredits merge.