From bfa35c8640e926088159249a099ed5fea4d2690e Mon Sep 17 00:00:00 2001 From: Stefan Schwarz Date: Mon, 28 Dec 2020 02:39:56 +0100 Subject: [PATCH] get stdout logs --- main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index f3f7bc2..7637e32 100644 --- a/main.go +++ b/main.go @@ -32,7 +32,9 @@ func main() { if err != nil { log.Fatalf("unread: %s", err) } - logs, err := cli.ContainerLogs(context.TODO(), containerName, types.ContainerLogsOptions{}) + logs, err := cli.ContainerLogs(context.TODO(), containerName, types.ContainerLogsOptions{ + ShowStdout: true, + }) if err != nil { log.Fatalf("unread: %s", err) }