{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/21181","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/21181/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/21181/comments","events_url":"https://api.github.com/repos/docker/docker/issues/21181/events","html_url":"https://github.com/docker/docker/issues/21181","id":140645094,"number":21181,"title":"Docker running on high CPU and crashes in the end","user":{"login":"michaelarnauts","id":1193779,"avatar_url":"https://avatars.githubusercontent.com/u/1193779?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelarnauts","html_url":"https://github.com/michaelarnauts","followers_url":"https://api.github.com/users/michaelarnauts/followers","following_url":"https://api.github.com/users/michaelarnauts/following{/other_user}","gists_url":"https://api.github.com/users/michaelarnauts/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelarnauts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelarnauts/subscriptions","organizations_url":"https://api.github.com/users/michaelarnauts/orgs","repos_url":"https://api.github.com/users/michaelarnauts/repos","events_url":"https://api.github.com/users/michaelarnauts/events{/privacy}","received_events_url":"https://api.github.com/users/michaelarnauts/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/area/logging","name":"area/logging","color":"207de5"},{"url":"https://api.github.com/repos/docker/docker/labels/kind/enhancement","name":"kind/enhancement","color":"E8CAAF"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-03-14T11:19:29Z","updated_at":"2016-03-15T09:37:23Z","closed_at":null,"body":"<!--\r\nIf you are reporting a new issue, make sure that we do not have any duplicates\r\nalready open. You can ensure this by searching the issue list for this\r\nrepository. If there is a duplicate, please close your issue and add a comment\r\nto the existing issue instead.\r\n\r\nIf you suspect your issue is a bug, please edit your issue description to\r\ninclude the BUG REPORT INFORMATION shown below. If you fail to provide this\r\ninformation within 7 days, we cannot debug your issue and will close it. We\r\nwill, however, reopen it if you later provide the information.\r\n\r\nFor more information about reporting issues, see\r\nhttps://github.com/docker/docker/blob/master/CONTRIBUTING.md#reporting-other-issues\r\n\r\n---------------------------------------------------\r\nBUG REPORT INFORMATION\r\n---------------------------------------------------\r\nUse the commands below to provide key information from your environment:\r\nYou do NOT have to include this information if this is a FEATURE REQUEST\r\n-->\r\n\r\n**Output of `docker version`:**\r\n\r\n```\r\nClient:\r\n Version:      1.10.3\r\n API version:  1.22\r\n Go version:   go1.5.3\r\n Git commit:   20f81dd\r\n Built:        Thu Mar 10 15:59:07 2016\r\n OS/Arch:      linux/amd64\r\n\r\nServer:\r\n Version:      1.10.3\r\n API version:  1.22\r\n Go version:   go1.5.3\r\n Git commit:   20f81dd\r\n Built:        Thu Mar 10 15:59:07 2016\r\n OS/Arch:      linux/amd64\r\n```\r\n\r\n\r\n**Output of `docker info`:**\r\n\r\n```\r\nContainers: 13\r\n Running: 1\r\n Paused: 0\r\n Stopped: 12\r\nImages: 342\r\nServer Version: 1.10.3\r\nStorage Driver: aufs\r\n Root Dir: /var/lib/docker/aufs\r\n Backing Filesystem: extfs\r\n Dirs: 324\r\n Dirperm1 Supported: true\r\nExecution Driver: native-0.2\r\nLogging Driver: json-file\r\nPlugins: \r\n Volume: local\r\n Network: host bridge null\r\nKernel Version: 4.2.0-30-generic\r\nOperating System: Ubuntu 15.10\r\nOSType: linux\r\nArchitecture: x86_64\r\nCPUs: 8\r\nTotal Memory: 7.705 GiB\r\nName: michael-OptiPlex-9020\r\nID: CKKO:NBNN:RDYO:QQAK:JFAX:6NA3:DLSP:HTGG:7OFX:RI5Y:U6O7:IAKU\r\nWARNING: No swap limit support\r\n```\r\n\r\n**Additional environment details (AWS, VirtualBox, physical, etc.):**\r\nHappens with a docker running on a physical machine, but also in a VirtualBox.\r\nCPU of physical machine: Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz\r\n\r\n\r\n\r\n**Steps to reproduce the issue:**\r\n1. Build the `Dockerfile` below\r\n2. Run it\r\n3. Observe high CPU usage of the `asterisk` process, but also of the `docker daemon`.\r\n4. Docker daemon will keep on eating CPU and memory, until it crashes\r\n\r\n\r\n**Describe the results you received:**\r\n````shell\r\n$ ps aux | grep asterisk\r\nroot     25881 99.2  0.5 3349604 42808 ?       Rsl  12:15   0:29 asterisk -c\r\n$ ps aux | grep docker\r\nroot     25729 77.0  0.8 767488 72268 ?        Ssl  12:15   0:29 /usr/bin/docker daemon -H fd://\r\n$ docker ps\r\nCONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES\r\n6cf222d88133        aa02e2b83b5c        \"asterisk -c\"       9 minutes ago       Up 9 minutes        80/tcp, 5060/tcp    loving_yalow\r\n$ docker stop loving_yalow\r\nFailed to stop container (loving_yalow): An error occurred trying to connect: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.22/containers/loving_yalow/stop?t=10: net/http: transport closed before response was received\r\n````\r\n\r\n**Describe the results you expected:**\r\n````shell\r\n$ ps aux | grep asterisk\r\nroot     25881  0.2  0.5 3349604 42808 ?       Rsl  12:15   0:29 asterisk -c\r\n$ ps aux | grep docker\r\nroot     25729  0.1  0.8 767488 72268 ?        Ssl  12:15   0:29 /usr/bin/docker daemon -H fd://\r\n````\r\n\r\n\r\n**Additional information you deem important (e.g. issue happens only occasionally):**\r\n\r\nI've already tried removing all files in `/var/lib/docker`. Also running inside a clean Ubuntu 14.04 VirtualBox gives the same results.\r\n\r\nDockerfile:\r\n````\r\nFROM ubuntu:14.04\r\nMAINTAINER Michaël Arnauts <michael.arnauts@staff.destiny.be>\r\n\r\n# Install packages\r\nRUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get -y install \\\r\n    asterisk \\\r\n    && apt-get clean \\\r\n    && rm -rf /var/lib/apt/lists/*\r\n\r\n# Expose ports\r\nEXPOSE 5060\r\n\r\nCMD [\"asterisk\", \"-c\"]\r\n````"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/196742298","html_url":"https://github.com/docker/docker/issues/21181#issuecomment-196742298","issue_url":"https://api.github.com/repos/docker/docker/issues/21181","id":196742298,"user":{"login":"unclejack","id":1409668,"avatar_url":"https://avatars.githubusercontent.com/u/1409668?v=3","gravatar_id":"","url":"https://api.github.com/users/unclejack","html_url":"https://github.com/unclejack","followers_url":"https://api.github.com/users/unclejack/followers","following_url":"https://api.github.com/users/unclejack/following{/other_user}","gists_url":"https://api.github.com/users/unclejack/gists{/gist_id}","starred_url":"https://api.github.com/users/unclejack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unclejack/subscriptions","organizations_url":"https://api.github.com/users/unclejack/orgs","repos_url":"https://api.github.com/users/unclejack/repos","events_url":"https://api.github.com/users/unclejack/events{/privacy}","received_events_url":"https://api.github.com/users/unclejack/received_events","type":"User","site_admin":false},"created_at":"2016-03-15T09:37:23Z","updated_at":"2016-03-15T09:37:23Z","body":"@michaelarnauts Could you tell me the exact options you've passed to `docker run`, please? I've tried `docker run -d asterisk` and it ran for about 30 minutes without seeing an increase in CPU usage."}}