added some docker compose examples; fixed defaults to wrong host; updated watcher behavior to retry connection every 3 secs until success or until cancelled

This commit is contained in:
yusing
2024-09-22 04:00:08 +08:00
parent 6388d9d44d
commit a11ce46028
8 changed files with 119 additions and 15 deletions

View File

@@ -21,9 +21,8 @@ type Client struct {
}
func ParseDockerHostname(host string) (string, E.NestedError) {
if host == common.DockerHostFromEnv {
return host, nil
} else if host == "" {
switch host {
case common.DockerHostFromEnv, "":
return "localhost", nil
}
url, err := E.Check(client.ParseHostURL(host))