1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-21 21:33:18 +01:00

feat: prints local docker engine error

This commit is contained in:
Amir Raminfar
2023-10-31 16:02:58 -07:00
parent 4e5f7ae1cf
commit ebc02900b6

View File

@@ -243,8 +243,9 @@ func createLocalClient(args args, localClientFactory func(map[string][]string) (
dockerClient, err := localClientFactory(args.Filter) dockerClient, err := localClientFactory(args.Filter)
if err == nil { if err == nil {
_, err := dockerClient.ListContainers() _, err := dockerClient.ListContainers()
if err != nil {
if err == nil { log.Warnf("Could not connect to local Docker Engine: %s", err)
} else {
log.Debugf("Connected to local Docker Engine") log.Debugf("Connected to local Docker Engine")
return dockerClient return dockerClient
} }