{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/9868","labels_url":"https://api.github.com/repos/docker/docker/issues/9868/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/9868/comments","events_url":"https://api.github.com/repos/docker/docker/issues/9868/events","html_url":"https://github.com/docker/docker/issues/9868","id":53234010,"number":9868,"title":"runtime/cgo: pthread_create failed: Resource temporarily unavailable","user":{"login":"SvenDowideit","id":28492,"avatar_url":"https://avatars.githubusercontent.com/u/28492?v=3","gravatar_id":"","url":"https://api.github.com/users/SvenDowideit","html_url":"https://github.com/SvenDowideit","followers_url":"https://api.github.com/users/SvenDowideit/followers","following_url":"https://api.github.com/users/SvenDowideit/following{/other_user}","gists_url":"https://api.github.com/users/SvenDowideit/gists{/gist_id}","starred_url":"https://api.github.com/users/SvenDowideit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SvenDowideit/subscriptions","organizations_url":"https://api.github.com/users/SvenDowideit/orgs","repos_url":"https://api.github.com/users/SvenDowideit/repos","events_url":"https://api.github.com/users/SvenDowideit/events{/privacy}","received_events_url":"https://api.github.com/users/SvenDowideit/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/system/devicemapper","name":"system/devicemapper","color":"FBCA04"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-01-02T01:37:24Z","updated_at":"2015-07-19T20:09:45Z","closed_at":"2015-03-02T17:52:57Z","body":"see https://groups.google.com/forum/#!topic/docker-user/BG7lBIizmQw\r\n\r\n```\r\nI use a script to start containers, sleep 2s when started every 10 containers. But each time, when started about 420~430 containers, will encounter following errors.\r\nany comments on this error?\r\nThanks.\r\n\r\n\r\nruntime/cgo: pthread_create failed: Resource temporarily unavailable\r\nSIGABRT: abort\r\nPC=0x99d249\r\ngoroutine 0 [idle]:\r\n\r\ngoroutine 20 [syscall]:\r\nruntime.notetsleepg(0x123f9a0, 0xffffffffffffffff)\r\n        /usr/local/go/src/pkg/runtime/lock_futex.c:198 +0x46 fp=0x7ff9d1cebf40 sp=0x7ff9d1cebf10\r\nruntime.signal_recv(0x0)\r\n        /usr/local/go/src/pkg/runtime/sigqueue.goc:110 +0xea fp=0x7ff9d1cebf68 sp=0x7ff9d1cebf40\r\nos/signal.loop()\r\n        /usr/local/go/src/pkg/os/signal/signal_unix.go:21 +0x1e fp=0x7ff9d1cebfa8 sp=0x7ff9d1cebf68\r\nruntime.goexit()\r\n        /usr/local/go/src/pkg/runtime/proc.c:1445 fp=0x7ff9d1cebfb0 sp=0x7ff9d1cebfa8\r\ncreated by os/signal.initÂ·1\r\n        /usr/local/go/src/pkg/os/signal/signal_unix.go:27 +0x32\r\n\r\ngoroutine 16 [runnable]:\r\nfmt.(*buffer).WriteRune(0xc208004550, 0xc20000006e, 0x0, 0x0)\r\n        /usr/local/go/src/pkg/fmt/print.go:93\r\nfmt.(*ss).token(0xc208004540, 0xc200000001, 0xd8be60, 0x0, 0x0, 0x0)\r\n        /usr/local/go/src/pkg/fmt/scan.go:479 +0xdd\r\nfmt.(*ss).convertString(0xc208004540, 0x73, 0x0, 0x0)\r\n        /usr/local/go/src/pkg/fmt/scan.go:831 +0x122\r\nfmt.(*ss).scanOne(0xc208004540, 0x73, 0xa55f00, 0xc2080a1fb0)\r\n        /usr/local/go/src/pkg/fmt/scan.go:988 +0x122a\r\nfmt.(*ss).doScanf(0xc208004540, 0xc78610, 0x15, 0xc2080f7ad8, 0x7, 0x7, 0x5, 0x0, 0x0)\r\n        /usr/local/go/src/pkg/fmt/scan.go:1160 +0x38e\r\nfmt.Fscanf(0x7ff9d1e72a80, 0xc208104390, 0xc78610, 0x15, 0xc2080f7ad8, 0x7, 0x7, 0x434595, 0x0, 0x0)\r\n        /usr/local/go/src/pkg/fmt/scan.go:145 +0xc4\r\nfmt.Sscanf(0xc2081037a0, 0x10b, 0xc78610, 0x15, 0xc2080f7ad8, 0x7, 0x7, 0x7, 0x0, 0x0)\r\n        /usr/local/go/src/pkg/fmt/scan.go:117 +0xce\r\ngithub.com/docker/docker/pkg/mount.parseInfoFile(0x7ff9d1e723c8, 0xc20803a040, 0x0, 0x0, 0x0, 0x0, 0x0)\r\n        /go/src/github.com/docker/docker/pkg/mount/mountinfo_linux.go:58 +0x4a6\r\ngithub.com/docker/docker/pkg/mount.parseMountTable(0x0, 0x0, 0x0, 0x0, 0x0)\r\n        /go/src/github.com/docker/docker/pkg/mount/mountinfo_linux.go:37 +0x135\r\ngithub.com/docker/docker/pkg/mount.GetMounts(0x0, 0x0, 0x0, 0x0, 0x0)\r\n        /go/src/github.com/docker/docker/pkg/mount/mount.go:8 +0x4b\r\ngithub.com/docker/libcontainer/cgroups.FindCgroupMountpoint(0xc37960, 0x3, 0x0, 0x0, 0x0, 0x0)\r\n        /go/src/github.com/docker/docker/vendor/src/github.com/docker/libcontainer/cgroups/utils.go:18 +0x59\r\ngithub.com/docker/libcontainer/cgroups/fs.initÂ·1()\r\n        /go/src/github.com/docker/docker/vendor/src/github.com/docker/libcontainer/cgroups/fs/apply_raw.go:33 +0x34\r\ngithub.com/docker/libcontainer/cgroups/fs.init()\r\n        /go/src/github.com/docker/docker/vendor/src/github.com/docker/libcontainer/cgroups/fs/utils.go:62 +0x533\r\ngithub.com/docker/libcontainer/cgroups/systemd.init()\r\n        /go/src/github.com/docker/docker/vendor/src/github.com/docker/libcontainer/cgroups/systemd/apply_systemd.go:358 +0x59\r\ngithub.com/docker/libcontainer/namespaces.init()\r\n        /go/src/github.com/docker/docker/vendor/src/github.com/docker/libcontainer/namespaces/types_linux.go:16 +0x9e\r\ngithub.com/docker/docker/daemon/execdriver/native.init()\r\n        /go/src/github.com/docker/docker/daemon/execdriver/native/utils.go:35 +0x69\r\nmain.init()\r\n        /go/src/github.com/docker/docker/docker/flags.go:101 +0x9e\r\n\r\ngoroutine 19 [finalizer wait]:\r\nruntime.park(0x41df50, 0x123cdd8, 0x1222a49)\r\n        /usr/local/go/src/pkg/runtime/proc.c:1369 +0x89\r\nruntime.parkunlock(0x123cdd8, 0x1222a49)\r\n        /usr/local/go/src/pkg/runtime/proc.c:1385 +0x3b\r\nrunfinq()\r\n        /usr/local/go/src/pkg/runtime/mgc0.c:2644 +0xcf\r\nruntime.goexit()\r\n        /usr/local/go/src/pkg/runtime/proc.c:1445\r\n\r\ngoroutine 17 [syscall]:\r\nruntime.goexit()\r\n        /usr/local/go/src/pkg/runtime/proc.c:1445\r\n\r\nrax     0x0\r\nrbx     0xb\r\nrcx     0xffffffffffffffff\r\nrdx     0x6\r\nrdi     0x1758\r\nrsi     0x3b0c\r\nrbp     0x7ff9d0bcec40\r\nrsp     0x7ff9d0bcea78\r\nr8      0x7ff9d0bcf700\r\nr9      0x616e7520796c6972\r\nr10     0x8\r\nr11     0x202\r\nr12     0x7ff9c80008c0\r\nr13     0x0\r\nr14     0x7ff9d0bcf9c0\r\nr15     0x7ff9d0bcf700\r\nrip     0x99d249\r\nrflags  0x202\r\ncs      0x33\r\nfs      0x0\r\ngs      0x0\r\nruntime/cgo: pthread_create failed: Resource temporarily unavailable\r\nSIGABRT: abort\r\nPC=0x99d249\r\n\r\ngoroutine 0 [idle]:\r\n\r\ngoroutine 16 [runnable]:\r\nfmt.(*ss).scanOne(0xc208004000, 0x64, 0xa4dd40, 0xc208091a98)\r\n        /usr/local/go/src/pkg/fmt/scan.go:933 +0xa4\r\nfmt.(*ss).doScanf(0xc208004000, 0xc78610, 0x15, 0xc2080efad8, 0x7, 0x7, 0x3, 0x0, 0x0)\r\n        /usr/local/go/src/pkg/fmt/scan.go:1160 +0x38e\r\nfmt.Fscanf(0x7f646c699ba0, 0xc2080754f0, 0xc78610, 0x15, 0xc2080efad8, 0x7, 0x7, 0x434595, 0x0, 0x0)\r\n        /usr/local/go/src/pkg/fmt/scan.go:145 +0xc4\r\nfmt.Sscanf(0xc2080b78c0, 0x10b, 0xc78610, 0x15, 0xc2080efad8, 0x7, 0x7, 0x7, 0x0, 0x0)\r\n        /usr/local/go/src/pkg/fmt/scan.go:117 +0xce\r\ngithub.com/docker/docker/pkg/mount.parseInfoFile(0x7f646c6993c8, 0xc20803a040, 0x0, 0x0, 0x0, 0x0, 0x0)\r\n        /go/src/github.com/docker/docker/pkg/mount/mountinfo_linux.go:58 +0x4a6\r\ngithub.com/docker/docker/pkg/mount.parseMountTable(0x0, 0x0, 0x0, 0x0, 0x0)\r\n        /go/src/github.com/docker/docker/pkg/mount/mountinfo_linux.go:37 +0x135\r\ngithub.com/docker/docker/pkg/mount.GetMounts(0x0, 0x0, 0x0, 0x0, 0x0)\r\n        /go/src/github.com/docker/docker/pkg/mount/mount.go:8 +0x4b\r\ngithub.com/docker/libcontainer/cgroups.FindCgroupMountpoint(0xc37960, 0x3, 0x0, 0x0, 0x0, 0x0)\r\n        /go/src/github.com/docker/docker/vendor/src/github.com/docker/libcontainer/cgroups/utils.go:18 +0x59\r\ngithub.com/docker/libcontainer/cgroups/fs.initÂ·1()\r\n        /go/src/github.com/docker/docker/vendor/src/github.com/docker/libcontainer/cgroups/fs/apply_raw.go:33 +0x34\r\ngithub.com/docker/libcontainer/cgroups/fs.init()\r\n        /go/src/github.com/docker/docker/vendor/src/github.com/docker/libcontainer/cgroups/fs/utils.go:62 +0x533\r\ngithub.com/docker/libcontainer/cgroups/systemd.init()\r\n        /go/src/github.com/docker/docker/vendor/src/github.com/docker/libcontainer/cgroups/systemd/apply_systemd.go:358 +0x59\r\ngithub.com/docker/libcontainer/namespaces.init()\r\n        /go/src/github.com/docker/docker/vendor/src/github.com/docker/libcontainer/namespaces/types_linux.go:16 +0x9e\r\ngithub.com/docker/docker/daemon/execdriver/native.init()\r\n        /go/src/github.com/docker/docker/daemon/execdriver/native/utils.go:35 +0x69\r\nmain.init()\r\n        /go/src/github.com/docker/docker/docker/flags.go:101 +0x9e\r\n\r\ngoroutine 17 [runnable]:\r\nruntime.MHeap_Scavenger()\r\n        /usr/local/go/src/pkg/runtime/mheap.c:507\r\nruntime.goexit()\r\n        /usr/local/go/src/pkg/runtime/proc.c:1445\r\n\r\ngoroutine 18 [runnable]:\r\nbgsweep()\r\n        /usr/local/go/src/pkg/runtime/mgc0.c:1976\r\nruntime.goexit()\r\n        /usr/local/go/src/pkg/runtime/proc.c:1445\r\n\r\ngoroutine 19 [runnable]:\r\nrunfinq()\r\n        /usr/local/go/src/pkg/runtime/mgc0.c:2606\r\nruntime.goexit()\r\n        /usr/local/go/src/pkg/runtime/proc.c:1445\r\n\r\ngoroutine 20 [runnable]:\r\nos/signal.loop()\r\n        /usr/local/go/src/pkg/os/signal/signal_unix.go:19\r\ncreated by os/signal.initÂ·1\r\n        /usr/local/go/src/pkg/os/signal/signal_unix.go:27 +0x32\r\n\r\ngoroutine 17 [syscall]:\r\nruntime.goexit()\r\n        /usr/local/go/src/pkg/runtime/proc.c:1445\r\n\r\nrax     0x0\r\nrbx     0xb\r\nrcx     0xffffffffffffffff\r\nrdx     0x6\r\nrdi     0x1671\r\nrsi     0x1671\r\nrbp     0x7fff38800f90\r\nrsp     0x7fff38800dc8\r\nr8      0x14f8880\r\nr9      0x616e7520796c6972\r\nr10     0x8\r\nr11     0x206\r\nr12     0x14fae10\r\nr13     0x7\r\nr14     0x10b\r\nr15     0xc2080b78c0\r\nrip     0x99d249\r\nrflags  0x206\r\ncs      0x33\r\nfs      0x0\r\ngs      0x0\r\n2014/12/15 17:58:46 Error response from daemon: Error activating devmapper device for '08e80b210baa930a2416e1370808574fd3d01c76fc45d1b7ae4e5204c99f848b-init': Error running DeviceCreate (activateDevice) dm_task_run failed\r\n2014/12/15 17:58:48 Post http:///var/run/docker.sock/v1.15/containers/create: EOF\r\n2014/12/15 17:58:48 Post http:///var/run/docker.sock/v1.15/containers/create: EOF\r\n2014/12/15 17:58:48 Post http:///var/run/docker.sock/v1.15/containers/create: EOF\r\n2014/12/15 17:58:48 Post http:///var/run/docker.sock/v1.15/containers/create: EOF\r\n2014/12/15 17:58:48 Post http:///var/run/docker.sock/v1.15/containers/create: EOF\r\n2014/12/15 17:58:48 Post http:///var/run/docker.sock/v1.15/containers/create: EOF\r\n2014/12/15 17:58:48 Post http:///var/run/docker.sock/v1.15/containers/create: EOF\r\n\r\nClick here to Reply\r\n\r\n\r\n\r\nLing Lan \t\r\n12/16/14\r\n\r\n\r\nsystem info:\r\n\r\n^C-bash-4.2# docker info\r\nContainers: 390\r\nImages: 13\r\nStorage Driver: devicemapper\r\n Pool Name: docker-253:0-18414011-pool\r\n Pool Blocksize: 65.54 kB\r\n Data file: /var/lib/docker/devicemapper/devicemapper/data\r\n Metadata file: /var/lib/docker/devicemapper/devicemapper/metadata\r\n Data Space Used: 3.904 GB\r\n Data Space Total: 107.4 GB\r\n Metadata Space Used: 35.62 MB\r\n Metadata Space Total: 2.147 GB\r\n Library Version: 1.02.82-git (2013-10-04)\r\nExecution Driver: native-0.2\r\nKernel Version: 3.10.0-123.9.3.el7.x86_64\r\nOperating System: Red Hat Enterprise Linux Server 7.0 (Maipo)\r\n```"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/122698756","html_url":"https://github.com/docker/docker/issues/9868#issuecomment-122698756","issue_url":"https://api.github.com/repos/docker/docker/issues/9868","id":122698756,"user":{"login":"rtrauntvein","id":3662109,"avatar_url":"https://avatars.githubusercontent.com/u/3662109?v=3","gravatar_id":"","url":"https://api.github.com/users/rtrauntvein","html_url":"https://github.com/rtrauntvein","followers_url":"https://api.github.com/users/rtrauntvein/followers","following_url":"https://api.github.com/users/rtrauntvein/following{/other_user}","gists_url":"https://api.github.com/users/rtrauntvein/gists{/gist_id}","starred_url":"https://api.github.com/users/rtrauntvein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rtrauntvein/subscriptions","organizations_url":"https://api.github.com/users/rtrauntvein/orgs","repos_url":"https://api.github.com/users/rtrauntvein/repos","events_url":"https://api.github.com/users/rtrauntvein/events{/privacy}","received_events_url":"https://api.github.com/users/rtrauntvein/received_events","type":"User","site_admin":false},"created_at":"2015-07-19T20:09:45Z","updated_at":"2015-07-19T20:09:45Z","body":"Hitting then when trying to rapidly launch containers via a shell script"}}