From dab6f4b768b00b15a127522f0446e358b744070f Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Wed, 6 Apr 2022 16:06:30 +0200 Subject: [PATCH] Specify --force flag when invoking nvidia-container-runtime-hook Signed-off-by: Evan Lezar --- internal/discover/legacy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/discover/legacy.go b/internal/discover/legacy.go index adc4c0c5..8a565905 100644 --- a/internal/discover/legacy.go +++ b/internal/discover/legacy.go @@ -60,7 +60,7 @@ func (d legacy) Hooks() ([]Hook, error) { } d.logger.Debugf("Using NVIDIA Container Runtime Hook path %v", hookPath) - args := []string{hookPath, "prestart"} + args := []string{hookPath, "--force", "prestart"} h := Hook{ Lifecycle: cdi.PrestartHook, Path: hookPath,