Open chrisvoo opened 1 year ago
Hi, thanks for reporting the issue, and sorry for the inconvenience. We are looking into the problem.
hi @chrisvoo, I've got a partial fix for the missing DELETE
events. It's partial because it can only report events on the top most remaining file system node in case of recursive deletions. For example:
dir_a - file_1
- dir_b - file_2
- dir_c - file3
if dir_b
is deleted we'll only report a deletion event DELETE dir_b
for dir_a
, instead of that and events for each item inside dir_b
and a DELETE_SELF dir_b
.
Here is a dev build - https://desktop-stage.docker.com/linux/main/amd64/94439/docker-desktop-4.16.0-amd64.deb - which includes the fix. If you are willing, please give it a go and let me know if the fix works for your use case.
Hi @p1-0tr , using 4.16.2 (95914) this works whenever you delete a directory, not on single files. Do you think it will be possible to full extend this to single files? Thanks
There hasn't been any activity on this issue for a long time.
If the problem is still relevant, mark the issue as fresh with a /remove-lifecycle stale
comment.
If not, this issue will be closed in 30 days.
Prevent issues from auto-closing with a /lifecycle frozen
comment.
/lifecycle stale
Do we experience a regression?
I see this issue is closed https://github.com/docker/desktop-linux/issues/30; however, I experience the same problem with the latest docker-desktop on Linux:
Linux distro: Ubuntu Distro version: 22.04.1 LTS Docker Desktop Version: 4.26.1
I'm using a bind between the host and docker container, and only changes made directly inside the docker container are triggering notify
FYI: default docker context (not desktop-linux) is working without any issues
Expected behavior
Given a container with inotify installed in it AND Given that inotify is monitoring a directory bind-mounted with docker-compose I expect that if I delete a file in that directory to see a DELETE event in the standard output
Actual behavior
inotify produces logs for moving/renaming/creating files but not for deleting them.
Information
This seems somehow related to this issue, after upgrading I noticed that inotify started reporting events. However, I'm not able to see any events on DELETE occurrences.
Steps to reproduce the behavior
docker-compose -f docker-compose-dev.yml up --build --quiet-pull --remove-orphans -d
inotifywait -mr /music/
MUSIC_LOCAL_DIRECTORY
.inotify produces logs for all the rest of the actions you can do on a file, but not regarding deletions.
The steps above probably could be simplified by running an Alpine image with inotify installed on it and a bind-mounted volume being monitored by inotify, something like: