-
Notifications
You must be signed in to change notification settings - Fork 290
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
File not changing inside docker container after updating from 2.1.0.5 to 2.2.0.0 #5530
Comments
I can confirm this. Same Setup, running as "Linux Containers" if this is somewhat helpfull. Does anyone already have a solution or workaround? |
My workaround was downgrading to 2.1.0.5 |
How do you downgrade? |
Me too, I am downgrading to 2.1.0.5 |
I'm also downgrading. @SamuelReinfelder This is the download link for 2.1.0.5 |
Same issue here - running a few gulp tasks using nginx / urbantrout's Craft CMS image / mysql, it will compile once and then never change the file. Obviously can't develop when your files don't update. |
Same issue. In addition it also seemed to interfere with files loaded in my local IDE (PHPStorm):
|
Same issue, the only thing that helped was downgrading. Any previous issue is ok |
Sorry for the inconvenience, uploading more diagnostics and/or specific reproduction steps would help a lot. |
Hi @mat007 , for me, I only set in docker-compose.yaml: volumes:
- .:/var/www All changes in any files doesnt persist in container. |
Steps to reproduce: RESULT: The changes you have made to the file in the host are not "transferred" to the container. If you restart the docker Environment the changes are there. |
Same Issue;
|
I also find the converse: Files changed in the container do not show up on the host. The file mount consistency of 2.2.0.0 is not working out. |
Same issue, but I noticed, that file in container starts being updated after I |
My Solution: Set ":consistent" command behind the volume path Example: Volume ":cached" is now by default... |
We're just experiencing similar problems. My observation: We're having a php composer project where we're symlinking local git repositories into the vendor dir of composer, e.g.: (changed for human readability and to get the concept of mixing static composer deps with local dev projects using autoloading) The directories are volume-bound with the whole project dir, so the "symlink" is a local NTFS junction automatically created by composer. We tested volume bindings with no option (default is :cached for the major project files), :cached, :delegated and :consistent - while we're still using :delegated and for local dev DBs, profiler data and logs. While this still works on my Docker CE 2.1.0.5 on Windows, we just found out manually opening the same PHP file via nano in the container renders different results on later versions of Docker on Windows - though, in theory, it is the same file:
The latter one does not reflect changes performed on the host, while the first one does. |
I'm having the same issue, I do change in the host but the changes are not reflected in the docker container. Information Restarting the docker containers actually updates the content of the files. |
I tried @blackangelxl solution of using |
Chiming in on this issue, I've noticed my files are not always reflecting changes in the volume as well. I've exec'd into the container and noticed that the date on the file changes to Jan 1, 1970 when the file refuses to update. Inside the container, if I touch the file, it will then update based on the changes in my volume and this may persist for a short time (shows the correct date at this time) before it stops updating again and the date changes to Jan 1, 1970.
|
@KevinVonJocoon I think your issue with junctions is different. I've created a new issue for it, #5582. |
It might be an issue, that a lot of people downgraded because it's critical work environment, as for me. However, in our team we have different setups, while one works and the other doesn't. Therefore i try to describe the difference and maybe you can guess where the issue comes from: Working Setup: Not Working Setup everything else should be the same: using a compose-file with multiple containers. I noticed the bug in our php-container (php:7.3.4-fpm-alpine3.9), didn't test other containers. volumes are mounted as |
Spun off #5530 (comment) and #5530 (comment) (about bind-mounts from one container bleeding into another even after the first container is stopped) into #6512 |
I'm suddenly seeing the same issue with 2.2.0.5 on OSX. No other way just downgrading to 2.1.0.5 hope this will fix the problem. |
@JexPY Please describe the exact reproduction steps and upload diagnostics, otherwise we can't do anything. Thanks. |
@stephen-turner any news on this? |
@ccaballero646 on WSL2, we use WSL baked-in 9p server to share files between the host and Docker Desktop. Unfortunately this does not support INotify events (yet). I can't tell for sure but as INotify and caching of host files is a regular complaint from users, I think Microsoft is working on it. |
Thanks @simonferquel |
We have now released 2.3.0.1 to Edge channel and 2.3.0.2 to Stable channel, which we think fix all the bugs in this ticket that we have had repro cases for. I am going to close this ticket now, as this thread has got too long for a single human to hold all of it in their head. 😃 And over time it has incorporated several issues that turned out to have different causes. Of course, we still want to know if there are any remaining issues in this area. So if anyone is still having these symptoms in 2.3, we want to look at it. Please open a new ticket, and provide exact, detailed reproduction steps (we have had trouble reproducing bugs in this area before, even where the reporter thought it happened "all the time") and a diagnostics id. Finally, thank you for everyone's patience and help as we ironed these issues out. |
Still experiencing not changing files inside my docker container with the latest version 2.3.0.2. Will deliver more info and a diagnostics id. |
Same here. Clearing cache, restarting, removing and readding drives - nothing helps. |
Same, problem exists in 2.3.0.2. Those fsnotify.WRITE do not work. (used: Windows 10 Pro, version 1909, OS Build 1835.815) |
Quick comment to thanks @flogr, @Serhiy-Shekhovtsov and @Eimantas123 for reporting this, you make me save time by not testing it. @stephen-turner, of course if you need me to test i'll find time. |
As I said above
Without that we have nothing to look at. Thanks. |
I opened up a new ticket on https://github.com/docker/for-mac/issues/4609 with the same issue. |
Thanks for opening a new ticket, @Benedikt-Kluss. Although if it's on Mac it must be a different problem, because none of this code is shared between Mac and Windows. But let's continue the conversation there. |
2.3.0.3 same issue for me |
Not only in Mac or Window, in Ubuntu i also get the same error, when I map a volume from my local machine to container for example with nginx: |
worked for me |
Eventually this helps: (tried everything above already) |
windows 10 pro with 2020h1 and docker desktop 2.3.0.3 same issue for me |
happening for me too ... host mapped volume refuses to update with any changes from the guest mapped volume ... docker version 2.3.0.3 (45519) stable |
I still have this issue with latest version. Is there an open issue for this? Creating an empty file %APPDATA%\Docker\disable-filesystem-caching did not fix issue for me. Does anyone have a workaround for getting container files to update from host folder? |
I'm sticking to Docker 2.1.0.5 until this issue is solved. Works for me. |
Wow, just noticed this one, it completely ruins my workflow. So far the only workaround is to do "touch" from inside container, it refreshes file content, |
And why is it closed? Still an issue on 2.3.0.3 |
@nick4fake They wanted it to be on an other thread but i agree with you, this one should be kept open. |
I explained above why it's closed:
As it says, if you still have a case that looks like this, it must be a different underlying issue, so please open a new ticket. And include exact, detailed reproduction steps and a diagnostics id, or we have nothing to analyse. I'm going to lock this issue now so that this message stays pinned to the bottom. |
Closed issues are locked after 30 days of inactivity. If you have found a problem that seems similar to this, please open a new issue. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
Expected behavior
When a file is changed in the windows filesystem, it should be changed inside the container.
Actual behavior
When a file is changed in the windows filesystem, it's not changed, it's the same as when the container started. The file's modification time is not changing as well.
Information
Steps to reproduce the behavior
The text was updated successfully, but these errors were encountered: