Skip to content
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

Fail to pick up file updates in boot2docker #84

Closed
princemaple opened this issue Sep 30, 2015 · 7 comments
Closed

Fail to pick up file updates in boot2docker #84

princemaple opened this issue Sep 30, 2015 · 7 comments
Labels

Comments

@princemaple
Copy link

Hi guys,

http://stackoverflow.com/questions/32821555/not-getting-real-file-update-in-vm/32826034#comment53548751_32821555

Would so nice if I can get it to work! If you care to help:

I'm a Windows user. And I've been using docker for a while to get away from having to install another OS.
Boot2docker works really well on Windows, and I've recently switched to docker machines, which seems to simply wrap boot2docker if you do local dev with virtualbox, also working pretty nicely.

Some issue I discovered about boot2docker, or the Linux it uses: it often fails to pick up file updates from the shared folder. It wasn't a problem before because the base images I used to build my own images don't have problems although they run in a problematic docker host (boot2docker vm). Official python / ruby / rails images all seem to able to pick up file updates fine. Recently I wanted to build an image that suits my particular use case out of a minimal base image, and I discovered this project. It's great to have such a tiny base image! I got it to work after some trial and error fun. Then, I discovered the problem I described above... didn't even realize there was such issue in boot2docker before I used alpine as my base image.

Anyway, thank you very much, if you read through all this. Any help will be greatly appreciated! Thanks!

@mattatcha
Copy link
Member

@princemaple Take a look at gliderlabs/pagebuilder#2. It has some information about what causes this problem and a temporary fix.

@princemaple
Copy link
Author

@MattAitchison yep the command works. Looks like it's the same issue. Thank you very much!

Edit: to run the command in boot2docker without sudo -i, change to sync; echo 3 | sudo tee /proc/sys/vm/drop_caches

@princemaple
Copy link
Author

@MattAitchison this makes me wonder why other base images are not affected.. I'm a newbie in this area. Do you happen to know why? I'm keen to get an easy / generic fix for my own dev env.

@progrium
Copy link
Contributor

progrium commented Oct 7, 2015

Most likely because alpine uses musl. But it's not specific to musl, just the use of sendfile if I recall. Which can happen in non-musl images as well.

@rdsubhas
Copy link

Might be a problem with the shared folder in underlying boot2docker image, please check the above referenced issue.

@princemaple
Copy link
Author

thanks @rdsubhas !

@princemaple
Copy link
Author

The problem is gone with the latest release of docker toolbox (docker machine, boot2docker).
It's a boot2docker issue, not really alpine's fault.

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

No branches or pull requests

5 participants