go-docker icon indicating copy to clipboard operation
go-docker copied to clipboard

Make Client.Close() more prominent in docs/examples

Open gbrener opened this issue 6 years ago • 0 comments
trafficstars

I encountered a "too many open files" error/panic when using the docker Golang client library as documented, and traced it back to this function: https://godoc.org/docker.io/go-docker#NewEnvClient . I solved the problem by calling the Close() method on the *Client object, but because this method is not being used in any of the examples, it took me a while to find it. Perhaps we can make Close() more prominent in the documentation somehow - and/or included in the existing examples - so that this doesn't bite more people in the future.

gbrener avatar Jun 10 '19 20:06 gbrener