CPU spikes while npm downloads/installs modules. After about a minute all running containers terminals exit with An error occurred trying to connect: EOF and the above errors are logged.
Could you please post the tracking ID output by pinata diagnose -u?
Also, if you have an example project (open source?) that has “a moderate number of JS dependencies” that exhibits the bug on your machine, we would love to have a way to reproduce the issue.
Sorry about the bug and thanks for participating in the Docker for Mac Beta!
I have the exact same issue, it seems that it crashes during NPM installs and when the node_modules directory is in a directory mounted from the host, for example:
-v `pwd`:/code
And the package.json and node_modules is located inside the /code directory.
Unfortunately it is closed source so I can’t share any sample code, but the container uses “node:0.12” image and is started with:
It worked on 1.11.0-beta7 but not on 1.11.0-beta8.
Was using OSX 10.10.5 but upgraded to 10.11.4, but the issue is the same.
A temporary workaround that seems to work is to use a named volume mount for just the node modules directory (added before the host mount so it is layered properly):
I just re-ran the build and then did pinata diagnose -u:
OS X: version 10.11.4 (build: 15E65)
Docker.app: version v1.11.0-beta8.2
Running diagnostic tests:
[OK] docker-cli
[OK] Moby booted
[OK] driver.amd64-linux
[OK] vmnetd
[OK] osxfs
[OK] db
[OK] slirp
[OK] menubar
[OK] environment
[OK] Docker
[OK] VT-x
Docker logs are being collected into /tmp/20160425-105401.tar.gz
Most specific failure is: No error was detected
Your unique id is: B6C27AE2-FB83-41A1-91B2-9386251C196A
Please quote this in all correspondence.
I’m beta testing Docker for Mac @ work, so unfortunately it’s a work thing =(
I can post the the package.json:
Thanks @jespermjonsson, I was hoping I could use the volume work-around you’ve found as a quick-fix. I guess my luck ran out though, I’ve still got the same issue after a couple of attempts =(