I have a docker container with nginx. I run it on a macbook with an M1 chip and get the io_setup error() failed (38: Function not implemented).
I have a docker container with nginx. I run it on a macbook with an M1 chip and get the io_setup error() failed (38: Function not implemented).
2
Answers
As said in the comments, you just have to run an NGINX arm64v8 image with:
You can then check that it’s correctly running with:
I have a Mac M1.
My code ran perfectly yesterday, however today after changing nothing it gave this error:
Error io_setup() failed (38: Function not implemented) in Nginx for ARM M1
.I tried a bunch of things, but what ultimately worked was simply uninstalling and reinstalling Docker. Sort of a last resort, but it worked for me.
EDIT: A few days after this I got a similar error:
lsb_release command failed with Os { code: 2, kind: NotFound, message: "No such file or directory" }
that may be related. To fix it, I just quit (closed) Docker Desktop, and re-opened it. That fixed it.