By the way, instead of using a volume for my sources, I enable the RemoteSync plugin in my Atom editor.įollowing I provide some info about my environment OS X El Capitan (version 10.11.4) Without the volume it seems at least as fast as when using docker-machine. I’m running a Rails app in one container linked to a Postgres DB in another, and yes, with a volume for my source code the app runs really slow averaging almost 2 mins for simple HTTP requests. Users/stefanfoulis/tmp # time dd if=/dev/zero of=test.dat bs=1024 count=100000 # time dd if=/dev/zero of=test.dat bs=1024 count=100000ĭocker logs are being collected into /tmp/.ĭocker-toolbox / docker-machine docker-1.10.3 run -rm -it -v `pwd`:`pwd` -w `pwd` alpine /bin/sh Users/stefanfoulis/tmp/speedtest # time dd if=/dev/zero of=test.dat bs=1024 count=100000 And 12s mounted vs 0.65s non-mounted with docker-machine:ĭocker for Mac: docker run -rm -it -v `pwd`:`pwd` -w `pwd` alpine /bin/sh For me it actually takes 1m26s for a mounted volume in OSX vs 1s for non mounted.
0 Comments
Leave a Reply. |