From bd042a5f515c0167414a006125459cdc1e69a9c7 Mon Sep 17 00:00:00 2001 From: Baptiste Foy Date: Tue, 24 Dec 2024 11:11:57 +0100 Subject: [PATCH] debug logs docker --- test/new-e2e/tests/installer/host/host.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/new-e2e/tests/installer/host/host.go b/test/new-e2e/tests/installer/host/host.go index 79b43ef730fec..145141dfd1b7d 100644 --- a/test/new-e2e/tests/installer/host/host.go +++ b/test/new-e2e/tests/installer/host/host.go @@ -79,7 +79,11 @@ func (h *Host) setSystemdVersion() { // InstallDocker installs Docker on the host if it is not already installed. func (h *Host) InstallDocker() { - defer func() { h.remote.MustExecute("sudo systemctl start docker") }() + defer func() { + h.remote.MustExecute("sudo systemctl reset-failed docker") + _, err := h.remote.Execute("sudo systemctl start docker") + require.NoErrorf(h.t, err, "failed to start Docker, logs: %s", h.remote.MustExecute("sudo journalctl -xeu docker")) + }() if _, err := h.remote.Execute("command -v docker"); err == nil { return }