Cannot connect to Docker Engine
`)) 59 | return 60 | } 61 | 62 | if len(containers) == 0 { 63 | w.Write([]byte(`No containers found
`)) 64 | return 65 | } 66 | 67 | BuildHtml(w, containers) 68 | }) 69 | 70 | slog.Info("starting webserver", "host", host, "port", port) 71 | err = http.ListenAndServe(fmt.Sprintf("%s:%s", host, port), nil) 72 | if err != nil { 73 | slog.Error("error starting webserver", "err", err) 74 | return 75 | } 76 | } 77 | -------------------------------------------------------------------------------- /widget.gohtml: -------------------------------------------------------------------------------- 1 |{{ .Name }}
26 | {{ end }} 27 | {{ if .Description}} 28 |{{ .Description }}
29 | {{ end }} 30 |