replace deprecated Prestart to CreateRuntime hook
Prestart Hook is deprecated and can be replaced with CreateRuntime hook Signed-off-by: Akhil Mohan <akhilerm@gmail.com>
This commit is contained in:
@@ -87,7 +87,7 @@ func WithGPUs(opts ...Opts) oci.SpecOpts {
|
||||
if s.Hooks == nil {
|
||||
s.Hooks = &specs.Hooks{}
|
||||
}
|
||||
s.Hooks.Prestart = append(s.Hooks.Prestart, specs.Hook{
|
||||
s.Hooks.CreateRuntime = append(s.Hooks.CreateRuntime, specs.Hook{
|
||||
Path: c.OCIHookPath,
|
||||
Args: append([]string{
|
||||
"containerd",
|
||||
|
||||
Reference in New Issue
Block a user