mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-26 23:38:31 +00:00
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 <gabriela.cervantes.tellez@intel.com>
This commit is contained in:
parent
c0d502493e
commit
d53eb73eec
@ -168,6 +168,8 @@ function init_env()
|
|||||||
|
|
||||||
cmd=("docker" "ctr")
|
cmd=("docker" "ctr")
|
||||||
|
|
||||||
|
sudo systemctl restart docker
|
||||||
|
|
||||||
# check dependencies
|
# check dependencies
|
||||||
check_cmds "${cmd[@]}"
|
check_cmds "${cmd[@]}"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user