I have just updated my Docker Desktop to the newest 4.30.0 version and I experienced the following error/bug:
If i modify a shared file on the host, the docker doesn’t update this file in the container. So for example I modify the program code of an app on the host, but I can’t see the changes unless I restart the whole docker desktop.
I experienced the problem on Win10, MacOS is ok.
Tbh this bug makes the whole docker desktop useless. My other problem is, I can’t roll back to the previous version… I downloaded an older installer, but the only text is: “everything is up to date”. Do I really have to uninstall everything just to roll back?
You mean you can’t see the the file inside the container or there is an app that does not restart to use the new code?
If it is really a bug, you can report it on GitHub:
I never downgraded so I don’t know from experience, but if Docker Desktop check whether it is up to date or not, then I understand why you need to reinstall. Older versions could be updated to newer versions as newer versions can understand the old formats and do the necessary conversion but older Docker desktop will not know how to do changes if necessary.
I thought we are alone having this same issue on our project using Docker Desktop on Windows 11. Changes applied to a file on the host on shared directories are not synced up to the container unless Docker Desktop is restarted. So, I advised the team to downgrade to 4.29.0 version where sync up works between the host and container’s shared files and directories.
Yes, had tried both and it doesn’t resolve the issue. What restarting only does is sync up the changes one-time and on succeeding changes, it will not sync up – need to restart Docker Desktop again. On local development using Docker, that’s annoying.
Exactly the same experiences what ctberdon said. I tried to recreate the container and the image but nothing has worked. The only solution is to restart the Docker Dekstop every time something changes on the host’s files. That’s not just annoying, but makes local development impossible.
I’ve just uninstalled the latest Docker Deskop and yeah, the configuration and settings are reset. Then, I rebuilt all my containers. After that, everything worked again!
Instead of uninstalling and installing Docker Desktop, try to run this command in CLI: <installer_file_path>/DockerInstaller.exe install --disable-version-check. This way you will not lose the settings and config. At least for me it worked (I rolled back to 4.29.0)
Same issue on Windows Host machine. for php:apache image
Restarting the Desktop Docker helps, only for a short while and the issue occurs again. I found a way to do the development by attaching the container to VS Code and working directly on the container but that is not a preferred solution
I have the same issue with Windows 11. File changes do not occure in my containers unless I restart docker after each file change. This bug should be solved as soon as possible.