1
0
mirror of https://github.com/amir20/dozzle.git synced 2026-01-03 11:35:00 +01:00

fix: fixes healthcheck when containers are stopped

This commit is contained in:
Amir Raminfar
2023-04-09 13:47:03 -07:00
parent 9775df895b
commit 8c625a3113

View File

@@ -319,7 +319,7 @@ func (d *dockerClient) Ping(ctx context.Context) (types.Ping, error) {
return d.cli.Ping(ctx)
}
var PARENTHESIS_RE = regexp.MustCompile(`\(([^)]+)\)`)
var PARENTHESIS_RE = regexp.MustCompile(`\(([a-zA-Z]+)\)`)
func findBetweenParentheses(s string) string {
if results := PARENTHESIS_RE.FindStringSubmatch(s); results != nil {