fix(docker): add TLS check; correct dial handling and reconnection for custom docker provider; modernize pointer arithemetic with unsafe.Add

This commit is contained in:
yusing
2026-01-07 15:28:53 +08:00
parent 7bfb57ea30
commit 1ebba20216
2 changed files with 21 additions and 3 deletions

View File

@@ -177,7 +177,7 @@ func checkConnection(ctx context.Context, client *docker.SharedClient) bool {
defer cancel()
err := client.CheckConnection(ctx)
if err != nil {
log.Debug().Err(err).Msg("docker watcher: connection failed")
log.Debug().Err(err).Str("host", client.Address()).Msg("docker watcher: connection failed")
return false
}
return true