quirrel icon indicating copy to clipboard operation
quirrel copied to clipboard

Docker container crashes on M1 computers

Open babasbot opened this issue 3 years ago • 1 comments

Bug Report

Intel-based containers on Apple Silicon machines under emulation can crash as qemu sometimes fails to run the container.

Current Behavior

The container crashes on start.

quirrel  | #
quirrel  | # Fatal process OOM in Failed to reserve virtual memory for CodeRange
quirrel  | #
quirrel  |
quirrel  | qemu: uncaught target signal 5 (Trace/breakpoint trap) - core dumped
quirrel  | Trace/breakpoint trap
quirrel exited with code 133

Expected behavior/code

The container should start

Environment

  • Docker image: ghcr.io/quirrel-dev/quirrel:sha-1038e25
  • Host: Apple M1

Possible Solution

Distribute an additional Docker image based on amd64/node:lts for Apple M1 users. I propose using the tag :m1-sha-1038e25.

-FROM node:16
+FROM amd64/node:lts

Additional context/Screenshots

  • https://docs.docker.com/desktop/mac/apple-silicon/#known-issues

babasbot avatar Sep 23 '21 23:09 babasbot

Hi @babasbot! Thanks for this very thorough report. I'm looking into it in #788 :)

Skn0tt avatar Sep 27 '21 06:09 Skn0tt