From 3379ada59a9679b90d96d75a4f2cf164954137ef Mon Sep 17 00:00:00 2001 From: jb Date: Fri, 19 Jun 2026 11:54:02 -0300 Subject: [PATCH] fix: print docker output in network error and use networkName constant The network creation error format string had a trailing "output" with no verb, silently dropping the captured docker output. Add the missing %s. Also replace the hardcoded "app-dono_app" literal with the networkName constant in RunAppClienteContainer. Co-Authored-By: Claude Opus 4.8 --- internal/tui/docker.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/tui/docker.go b/internal/tui/docker.go index 409455a..133ca9c 100644 --- a/internal/tui/docker.go +++ b/internal/tui/docker.go @@ -56,7 +56,7 @@ func EnsureNetwork(name string) error { cmd = exec.Command("docker", "network", "create", name) out, err := cmd.CombinedOutput() if err != nil { - return fmt.Errorf("erro ao criar network %s: %w\noutput", name, err, string(out)) + return fmt.Errorf("erro ao criar network %s: %w\noutput: %s", name, err, string(out)) } return nil } @@ -125,7 +125,7 @@ func RunAppClienteContainer(image, containerName, configPath, configDestinationP "-u", uidGid, "-p", fmt.Sprintf("%s:8080", cv.Server["port"]), "--name", containerName, - "--network", "app-dono_app", + "--network", networkName, "--restart", "unless-stopped", "-v", fmt.Sprintf("%s:%s", absPath, configDestinationPath), "-v", fmt.Sprintf("%s:/app/certs", cv.Cert["cert_dir_path"]),