skip to Main Content

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


  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
    
    Login or Signup to reply.
  2. 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.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search