{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/20096","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/20096/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/20096/comments","events_url":"https://api.github.com/repos/docker/docker/issues/20096/events","html_url":"https://github.com/docker/docker/issues/20096","id":132065936,"number":20096,"title":"[1.10] \"runtime/cgo: pthread_create failed: Resource temporarily unavailable\" on CentOS 7","user":{"login":"mcmohd","id":8992311,"avatar_url":"https://avatars.githubusercontent.com/u/8992311?v=3","gravatar_id":"","url":"https://api.github.com/users/mcmohd","html_url":"https://github.com/mcmohd","followers_url":"https://api.github.com/users/mcmohd/followers","following_url":"https://api.github.com/users/mcmohd/following{/other_user}","gists_url":"https://api.github.com/users/mcmohd/gists{/gist_id}","starred_url":"https://api.github.com/users/mcmohd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcmohd/subscriptions","organizations_url":"https://api.github.com/users/mcmohd/orgs","repos_url":"https://api.github.com/users/mcmohd/repos","events_url":"https://api.github.com/users/mcmohd/events{/privacy}","received_events_url":"https://api.github.com/users/mcmohd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/docker/docker/milestones/50","html_url":"https://github.com/docker/docker/milestones/1.10.1","labels_url":"https://api.github.com/repos/docker/docker/milestones/50/labels","id":1563843,"number":50,"title":"1.10.1","description":"This milestone may never be actually released, but is to collect issues / PR's that may possibly warrant a 1.10.1 release; See our patch-release policy: https://github.com/docker/docker/blob/master/project/PATCH-RELEASES.md\r\n\r\n","creator":{"login":"thaJeztah","id":1804568,"avatar_url":"https://avatars.githubusercontent.com/u/1804568?v=3","gravatar_id":"","url":"https://api.github.com/users/thaJeztah","html_url":"https://github.com/thaJeztah","followers_url":"https://api.github.com/users/thaJeztah/followers","following_url":"https://api.github.com/users/thaJeztah/following{/other_user}","gists_url":"https://api.github.com/users/thaJeztah/gists{/gist_id}","starred_url":"https://api.github.com/users/thaJeztah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thaJeztah/subscriptions","organizations_url":"https://api.github.com/users/thaJeztah/orgs","repos_url":"https://api.github.com/users/thaJeztah/repos","events_url":"https://api.github.com/users/thaJeztah/events{/privacy}","received_events_url":"https://api.github.com/users/thaJeztah/received_events","type":"User","site_admin":false},"open_issues":17,"closed_issues":23,"state":"open","created_at":"2016-02-04T17:09:40Z","updated_at":"2016-02-10T00:55:57Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2016-02-08T06:41:19Z","updated_at":"2016-02-10T01:06:26Z","closed_at":null,"body":"Hi,\r\n\r\nI just upgraded to docker 1.10 and got struct with an issue where I'm not able to create large number of containers. I believe docker is either hanging or crashing as soon as number of containers are reaching more than 500. When I debug /var/log/messages I found that its giving resource unavailability issue on the same machine where I used to create around 1200 containers successfully.\r\n\r\nWhen I studied I found that there has been an introduction of TasksMax flag which sets number of threads to 512 by default but this flag is not supported by CentOS 7 or any OS versions running 3.10.xxx and giving following error:\r\n\r\n`[/etc/systemd/system.conf:58] Unknown lvalue 'TasksMax' in section 'Manager'`\r\n\r\nKindly suggest a way forward because it completed stopped our operation and we are not able to proceed with a high number of containers. I tried to remove TasksMax from docker.service file still there is no success. Here is the detail of docker:\r\n\r\n```\r\n[root@p4029667 log]# docker info\r\nContainers: 442\r\n Running: 401\r\n Paused: 0\r\n Stopped: 41\r\nImages: 30\r\nServer Version: 1.10.0-rc3\r\nStorage Driver: devicemapper\r\n Pool Name: docker-253:1-538163109-pool\r\n Pool Blocksize: 65.54 kB\r\n Base Device Size: 10.74 GB\r\n Backing Filesystem: xfs\r\n Data file: /dev/vg-docker/data\r\n Metadata file: /dev/vg-docker/metadata\r\n Data Space Used: 34.29 GB\r\n Data Space Total: 536.9 GB\r\n Data Space Available: 502.6 GB\r\n Metadata Space Used: 299.7 MB\r\n Metadata Space Total: 4.295 GB\r\n Metadata Space Available: 3.995 GB\r\n Udev Sync Supported: true\r\n Deferred Removal Enabled: true\r\n Deferred Deletion Enabled: true\r\n Deferred Deleted Device Count: 0\r\n Library Version: 1.02.107-RHEL7 (2015-10-14)\r\nExecution Driver: native-0.2\r\nLogging Driver: json-file\r\nPlugins:\r\n Volume: local\r\n Network: bridge null host\r\nKernel Version: 3.10.0-123.20.1.el7.x86_64\r\nOperating System: CentOS Linux 7 (Core)\r\nOSType: linux\r\nArchitecture: x86_64\r\nCPUs: 24\r\nTotal Memory: 188.7 GiB\r\nName: p4029667.pubip.serverbeach.com\r\nID: GYAC:IFA4:2ZBZ:FYMM:GT5G:CIIF:WSMY:3FVS:FZBU:B7LN:4WSQ:ZB6I\r\nWARNING: bridge-nf-call-iptables is disabled\r\nWARNING: bridge-nf-call-ip6tables is disabled\r\n```\r\nFollowing is the info related to version:\r\n\r\n```\r\nroot@p4029667 log]# docker version\r\nClient:\r\n Version:      1.10.0-rc3\r\n API version:  1.22\r\n Go version:   go1.5.3\r\n Git commit:   08c24cc\r\n Built:        Tue Feb  2 22:54:00 2016\r\n OS/Arch:      linux/amd64\r\n\r\nServer:\r\n Version:      1.10.0-rc3\r\n API version:  1.22\r\n Go version:   go1.5.3\r\n Git commit:   08c24cc\r\n Built:        Tue Feb  2 22:54:00 2016\r\n OS/Arch:      linux/amd64\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/182154357","html_url":"https://github.com/docker/docker/issues/20096#issuecomment-182154357","issue_url":"https://api.github.com/repos/docker/docker/issues/20096","id":182154357,"user":{"login":"tiborvass","id":827131,"avatar_url":"https://avatars.githubusercontent.com/u/827131?v=3","gravatar_id":"","url":"https://api.github.com/users/tiborvass","html_url":"https://github.com/tiborvass","followers_url":"https://api.github.com/users/tiborvass/followers","following_url":"https://api.github.com/users/tiborvass/following{/other_user}","gists_url":"https://api.github.com/users/tiborvass/gists{/gist_id}","starred_url":"https://api.github.com/users/tiborvass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tiborvass/subscriptions","organizations_url":"https://api.github.com/users/tiborvass/orgs","repos_url":"https://api.github.com/users/tiborvass/repos","events_url":"https://api.github.com/users/tiborvass/events{/privacy}","received_events_url":"https://api.github.com/users/tiborvass/received_events","type":"User","site_admin":false},"created_at":"2016-02-10T01:06:26Z","updated_at":"2016-02-10T01:06:26Z","body":"@mcmohd can you try setting `TasksMax=infinity` just out of curiosity."}}