-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sending build context to Docker daemon is slow #19
Comments
Is this specific to one project, or are you seeing this behavior across all docker builds? I'm not aware of anybody else who has run into this. I had one other report of something similar a while back, but it turned out the project just had huge |
In this case I'm sendibg abou 250mb. It worked fine with boot2docker. Sent from my iPhone
|
Had the same issue, see lmakarov/boot2docker-vagrant#13 for a solution. |
Oh that's a great tip, thanks @lmakarov I'll get this into the next release, in the meantime @BastianHofmann you could manually add this fix to |
Will do.
|
Works great!
|
Hooray! VM networking is still mostly a mystery to me, I'm afraid. I'll get this fix in. |
This reportedly fixes performance issues for some vbox+dinghy users. Fixes #19
I fixed it by moving my Dockerfile and docker-compose.yml into a subfolder called docker and it worked. Apparently docker sends the current folder to the daemon and my folder was 9 gigs. |
@eibrahim If you don't want Docker to pick up your entire folder during the build, you can use a .dockerignore file - https://docs.docker.com/reference/builder/#dockerignore-file E.g.,
|
Great tip. Didn't think of adding * to .dockerignore. Thanks. |
Adding to this, you can use e.g.:
to create a whitelist, vs a blacklist. |
When I run a
docker build
theSending build context to Docker daemon
step is slow. It always loads a few MB then it stops for a few seconds before it starts loading the next few MBs.OSX 10.10.3
Vagrant 1.7.2
VirtualBox 4.3.20
Docker version 1.5.0, build a8a31ef
The text was updated successfully, but these errors were encountered: