Skip to content

Commit

Permalink
debug logs docker
Browse files Browse the repository at this point in the history
  • Loading branch information
BaptisteFoy committed Dec 24, 2024
1 parent e837be4 commit bd042a5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/new-e2e/tests/installer/host/host.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit bd042a5

Please sign in to comment.