'Error io_setup() failed (38: Function not implemented) in Nginx for ARM M1

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).



Solution 1:[1]

As said in the comments, you just have to run an NGINX arm64v8 image with:

docker run -d -p 8080:80 arm64v8/nginx

You can then check that it's correctly running with:

curl localhost:8080

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Ortomala Lokni