When running Docker and creating containers, each uses 3-4 threads so that when trying to scale to a large number of containers this limit is hit.
--You received this message because you are subscribed to the Google Groups "golang-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On Apr 1, 2016 2:22 PM, <lab...@linux.vnet.ibm.com> wrote:
> If someone tries to create more than 2500 containers with Docker they will hit this limit. Since it is a limit in the Go language, it doesn't matter what platform you are running on or what Docker version.
I think Brad's question is more about why Docker needs 4 threads per container.
Do you think that running Docker in Docker could solve the issue?You would have multiple Docker/Go processes and it increases the threads limit.
Found a way to increase the 10,000 thread limit:https://golang.org/pkg/runtime/debug/#SetMaxThreads
debug.SetMaxThreads(20000)