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 }