luctus PRO said almost 2 years ago on Docker on Rails 7 :
Hey there! I'm having issues with nokogiri too, this is the error I get (running from M1):
/usr/local/bundle/gems/nokogiri-1.13.6-aarch64-linux/lib/nokogiri/extension.rb:7:in `require_relative': Error loading shared library ld-linux-aarch64.so.1: No such file or directory (needed by /usr/local/bundle/gems/nokogiri-1.13.6-aarch64-linux/lib/nokogiri/3.1/nokogiri.so) - /usr/local/bundle/gems/nokogiri-1.13.6-aarch64-linux/lib/nokogiri/3.1/nokogiri.so (LoadError)

By the way, I also got an error related to yarn:
Error:
rails-js-1        | You installed esbuild on another platform than the one you're currently using.
rails-js-1        | This won't work because esbuild is written with native code and needs to
rails-js-1        | install a platform-specific binary executable.
rails-js-1        |
rails-js-1        | Specifically the "esbuild-darwin-arm64" package is present but this platform
rails-js-1        | needs the "esbuild-linux-arm64" package instead. People often get into this
rails-js-1        | situation by installing esbuild on Windows or macOS and copying "node_modules"
rails-js-1        | into a Docker image that runs Linux, or by copying "node_modules" between
rails-js-1        | Windows and WSL environments.