In the context of a directory bind mounted (via a docker compose file), when I edit a file on host using VScode, the file don't get updated in the container.
When I create a new file, fill it, and save, the file appears on the container file system, but he's empty.
This happen since yesterday, after a Docker desktop "server hung". I've restart Docker desktop many times, update it to the last version.
Reproduce
docker run -d --name my -v ${pwd}:/data f57092a1636974f11fd
Edit a file on the host and save
docker exec my cat /data/laravel/app/Http/Controllers/MyController.php
Expected behavior
The file in the container must contains the content as the file on host, but it's not the case.
Description
In the context of a directory bind mounted (via a docker compose file), when I edit a file on host using VScode, the file don't get updated in the container. When I create a new file, fill it, and save, the file appears on the container file system, but he's empty.
This happen since yesterday, after a Docker desktop "server hung". I've restart Docker desktop many times, update it to the last version.
Reproduce
docker run -d --name my -v ${pwd}:/data f57092a1636974f11fd
Edit a file on the host and save
docker exec my cat /data/laravel/app/Http/Controllers/MyController.php
Expected behavior
The file in the container must contains the content as the file on host, but it's not the case.
docker version
docker info
Diagnostics ID
133F99C3-14D6-4D14-8B18-03420963AA1F/20240516084416
Additional Info
No response