{"action":"opened","issue":{"url":"https://api.github.com/repos/docker/docker/issues/22598","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/22598/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/22598/comments","events_url":"https://api.github.com/repos/docker/docker/issues/22598/events","html_url":"https://github.com/docker/docker/issues/22598","id":153765973,"number":22598,"title":"`pull` gets stuck waiting for a layer","user":{"login":"kojiromike","id":1566303,"avatar_url":"https://avatars.githubusercontent.com/u/1566303?v=3","gravatar_id":"","url":"https://api.github.com/users/kojiromike","html_url":"https://github.com/kojiromike","followers_url":"https://api.github.com/users/kojiromike/followers","following_url":"https://api.github.com/users/kojiromike/following{/other_user}","gists_url":"https://api.github.com/users/kojiromike/gists{/gist_id}","starred_url":"https://api.github.com/users/kojiromike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kojiromike/subscriptions","organizations_url":"https://api.github.com/users/kojiromike/orgs","repos_url":"https://api.github.com/users/kojiromike/repos","events_url":"https://api.github.com/users/kojiromike/events{/privacy}","received_events_url":"https://api.github.com/users/kojiromike/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-09T12:33:18Z","updated_at":"2016-05-09T12:33:18Z","closed_at":null,"body":"**Output of `docker version`:**\r\n\r\n```\r\nClient:\r\n Version:      1.11.1\r\n API version:  1.23\r\n Go version:   go1.6.2\r\n Git commit:   5604cbe\r\n Built:        Wed Apr 27 15:27:26 UTC 2016\r\n OS/Arch:      darwin/amd64\r\n\r\nServer:\r\n Version:      1.11.1\r\n API version:  1.23\r\n Go version:   go1.5.4\r\n Git commit:   5604cbe\r\n Built:        Wed Apr 27 00:34:20 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: 0\r\n Running: 0\r\n Paused: 0\r\n Stopped: 0\r\nImages: 1\r\nServer Version: 1.11.1\r\nStorage Driver: aufs\r\n Root Dir: /mnt/sda1/var/lib/docker/aufs\r\n Backing Filesystem: extfs\r\n Dirs: 2\r\n Dirperm1 Supported: true\r\nLogging Driver: json-file\r\nCgroup Driver: cgroupfs\r\nPlugins: \r\n Volume: local\r\n Network: bridge null host\r\nKernel Version: 4.4.8-boot2docker\r\nOperating System: Boot2Docker 1.11.1 (TCL 7.0); HEAD : 7954f54 - Wed Apr 27 16:36:45 UTC 2016\r\nOSType: linux\r\nArchitecture: x86_64\r\nCPUs: 1\r\nTotal Memory: 3.858 GiB\r\nName: default\r\nID: Y4GM:7ZGQ:XL7U:BGRR:R6ZR:7SDJ:P4WX:ENZD:6KCV:CYS7:TBM2:4FUZ\r\nDocker Root Dir: /mnt/sda1/var/lib/docker\r\nDebug mode (client): false\r\nDebug mode (server): true\r\n File Descriptors: 30\r\n Goroutines: 152\r\n System Time: 2016-05-09T12:25:32.911333681Z\r\n EventsListeners: 0\r\nRegistry: https://index.docker.io/v1/\r\nLabels:\r\n provider=virtualbox\r\n```\r\n\r\n**Additional environment details (AWS, VirtualBox, physical, etc.):**\r\n\r\n\r\n\r\n**Steps to reproduce the issue:**\r\n1. Have a sizeable docker-compose.yml file\r\n2. Do `docker-compose pull`. Note that sometimes, but not always, `pull` gets stuck waiting for a layer.\r\n3. Restart the docker machine.\r\n4. Do `docker pull` manually for all the images you need. Note that sometimes, but not always, `pull` gets stuck waiting for a layer (thus demonstrating the problem isn't with docker compose).\r\n\r\n**Describe the results you received:**\r\n```3.5.7-management: Pulling from library/rabbitmq\r\nd4bce7fd68df: Downloading 50.86 MB/51.35 MB\r\na3ed95caeb02: Download complete\r\nc0330dd9a641: Download complete\r\n55756666188f: Download complete\r\nc14677369432: Download complete\r\n26af78564017: Download complete\r\nbd6129eb0c93: Download complete\r\n5effe88cea3c: Download complete\r\nc393a181c961: Download complete\r\n76ed1a563002: Download complete\r\nbe99def8c8f1: Download complete\r\n281661af86b4: Download complete\r\nbc1e7dd06368: Download complete\r\n4a321db4bb32: Download complete\r\nc3ed9562f00a: Download complete```\r\n\r\nThat first layer, d4bce7fd68df, has been at 50.86 MB for about 8 minutes now. I've attempted to wait this out before. The longest I waited was over an hour.\r\n\r\n**Describe the results you expected:**\r\n\r\nIdeally, the `pull` should simply not hang. Barring that, it should die with an error so that I can understand the problem and work on automations for working around it.\r\n\r\n**Additional information you deem important (e.g. issue happens only occasionally):**\r\n\r\nThis issue does not happen on every pull, and it doesn't happen on the same layers every time. It happens more frequently on my home network than it does at work, but it has happened in both places. Restarting the entire docker machine (`docker-machine restart default`) is more effective at kicking the can than just killing and restarting the `pull` itself."}}