Open oprypkhantc opened 7 months ago
This problem seems to be nearly identical to this issue I have. https://github.com/docker/for-mac/issues/7210 with the difference of the NFS mount. There have been modifications regarding mounts in the moby/moby version used in 4.22.0 however, it should only affect rootless mounts that should not affect any other mounts.
Seems, that I can save time and skip testing against 4.29.0.
Description
Hey.
While other events (
CREATE
,ATTRIB
,MODIFY
, possibly others) are correctly propagated from the host, theDELETE
event is not triggered for files and nested directories at all.Reproduce
docker run --rm -it --volume "$(pwd)":/app -w /app alpine:3.18 sh
apk update && apk add inotify-tools && inotifywait -m -r -e modify -e attrib -e moved_to -e moved_from -e move -e move_self -e create -e delete -e delete_self -e unmount .
mkdir test && touch test/file
- you'll see the events frominotifywait
rm test/file
- no events:Expected behavior
Removing a file should have emitted a
DELETE
inotify event:docker version
docker info
Diagnostics ID
CD563FB5-0B9A-4E81-8B60-1A2209EF53E8/20240410132019
Additional Info
No response