From deadacd58f2c0f927fc723d11f384ecc73e93e41 Mon Sep 17 00:00:00 2001 From: Gabriela Cervantes Date: Mon, 11 Sep 2023 16:53:57 +0000 Subject: [PATCH] metrics: Ensure docker is running in init_env This PR ensures that docker is running as part of the init_env function in kata metrics to avoid failures like docker is not running and making the kata metrics CI to fail. Fixes #7898 Signed-off-by: Gabriela Cervantes (cherry picked from commit d53eb73eecf4b28306259e2170def6344bc635fd) --- tests/metrics/lib/common.bash | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/metrics/lib/common.bash b/tests/metrics/lib/common.bash index 327379a517..8528d2c7b0 100755 --- a/tests/metrics/lib/common.bash +++ b/tests/metrics/lib/common.bash @@ -168,6 +168,8 @@ function init_env() cmd=("docker" "ctr") + sudo systemctl restart docker + # check dependencies check_cmds "${cmd[@]}"