Specify --force flag when invoking nvidia-container-runtime-hook

Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
Evan Lezar 2022-04-06 16:06:30 +02:00
parent a9a4704273
commit dab6f4b768

View File

@ -60,7 +60,7 @@ func (d legacy) Hooks() ([]Hook, error) {
} }
d.logger.Debugf("Using NVIDIA Container Runtime Hook path %v", hookPath) d.logger.Debugf("Using NVIDIA Container Runtime Hook path %v", hookPath)
args := []string{hookPath, "prestart"} args := []string{hookPath, "--force", "prestart"}
h := Hook{ h := Hook{
Lifecycle: cdi.PrestartHook, Lifecycle: cdi.PrestartHook,
Path: hookPath, Path: hookPath,