Closed gbrener closed 5 years ago
Are you suggesting that the godoc site implement this change, or that the go-docker repo fix their documentation?
Suggesting a documentation fix to the go-docker repo. Closing this issue and reposting https://github.com/docker/go-docker/issues/16.
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 makeClose()
more prominent in the documentation somehow - and/or included in the existing examples - so that this doesn't bite more people in the future.