Skip to content
This repository has been archived by the owner on Apr 2, 2020. It is now read-only.

docker run slow when sharing large directories via volumes #60

Open
jayd3e opened this issue Jun 1, 2014 · 4 comments
Open

docker run slow when sharing large directories via volumes #60

jayd3e opened this issue Jun 1, 2014 · 4 comments

Comments

@jayd3e
Copy link

jayd3e commented Jun 1, 2014

I have a situation where calling docker run -v $(pwd):/app <image> pserve development.ini is really slow, due to the fact that vagrant has to sync a rather large directory at pwd. I've found that changing this line:

config.vm.synced_folder "$(echo ~)", "$(echo ~)", :create => true, mount_options: ["dmode=777,fmode=776"]

To:

config.vm.synced_folder "/Users/jayd3e", "/Users/jayd3e", :nfs => true

Eliminates the problem. Just wanted to get some insight into the options that I removed, and why they are there in the first place.

@jayd3e
Copy link
Author

jayd3e commented Jun 1, 2014

Either way, it's recommended that you use NFS, b/c vagrant slows down as your shared folders become larger. More info can be found here.

@freewil
Copy link

freewil commented Jun 17, 2014

👍 big performance improvement, thanks!

@jayd3e
Copy link
Author

jayd3e commented Jun 17, 2014

No prob. Do you have rights to merge?

@freewil
Copy link

freewil commented Jun 18, 2014

nope 😿

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants