-
Notifications
You must be signed in to change notification settings - Fork 116
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
In docker desktop preview, the inotify function fails on a container with platform set to linux/amd64. #5321
Comments
@pocari thanks for the report and the reproduction steps. I confirm that it reproduces for me on the build 3.1.0 (60984). I presume it must be a limitation of |
I guess this was expected since this is still open but this error can still be reproduced with RC1 (Version 3.3.0). |
The problem persist in RC3 (Version 3.3.0). |
Anybody find any solution for this issue, I don't find anything to fix o have a temporary solution? |
@jonareyes The current workaround is to switch to ARM64 images and avoid x86 images. According to the Docker docs (which link to this very issue), inotify doesn't work when emulating x86. |
@Zenexer is exactly right -- the only solution is to switch to arm64-capable multi-arch images. These will also be a lot faster and generally more reliable. I recommend investigating which base images you're using and to switch to multi-arch ones where possible. You can see which architectures are supported by each image on Docker Hub: To build a multi-arch image yourself, I recommend Since this is a qemu limitation rather than a Docker bug, I'll close this issue for now. You're welcome to keep discussing the topic though. |
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. |
(Experimental features is disabled and docker for mac(preview) does not start, so I left it enabled.)
Expected behavior
The inotify_init function will succeed.
Actual behavior
The inotify_init function failed.
Information
Steps to reproduce the behavior
This is the
main.c
that appears in the following reproduction procedure.inotify_init succeeds.
inotify_init will fail.
The text was updated successfully, but these errors were encountered: