from the example at container_logs_test.go, but the server raised an error Error response from daemon: Bad parameters: you must choose at least one stream.
Then I changed types.ContainerLogsOptions{} with types.ContainerLogsOptions{ShowStdout: true} and everything worked well.
So I was wondering whether this example could be misleading for beginners, or is there anything that I didn't notice?
I copied
from the example at
container_logs_test.go
, but the server raised an errorError response from daemon: Bad parameters: you must choose at least one stream
.Then I changed
types.ContainerLogsOptions{}
withtypes.ContainerLogsOptions{ShowStdout: true}
and everything worked well.So I was wondering whether this example could be misleading for beginners, or is there anything that I didn't notice?