get stdout logs
This commit is contained in:
parent
9785bd983b
commit
bfa35c8640
4
main.go
4
main.go
|
@ -32,7 +32,9 @@ func main() {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("unread: %s", err)
|
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 {
|
if err != nil {
|
||||||
log.Fatalf("unread: %s", err)
|
log.Fatalf("unread: %s", err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue