Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker and Compose on Apple Silicon M1 #121

Open
johnpilbeam opened this issue Jul 9, 2021 · 1 comment
Open

Docker and Compose on Apple Silicon M1 #121

johnpilbeam opened this issue Jul 9, 2021 · 1 comment

Comments

@johnpilbeam
Copy link

johnpilbeam commented Jul 9, 2021

Using Docker (https://docs.docker.com/docker-for-mac/apple-silicon/) on M1 MacBook Air ezpaarse_db does not start. It is stuck in a 'RESTARTING' loop:

runtime: failed to create new OS thread (have 2 already; errno=22)
fatal error: newosproc

runtime stack:
runtime.throw(0x524da0, 0x9)
/usr/local/go/src/runtime/panic.go:527 +0x90
runtime.newosproc(0xc820026000, 0xc820035fc0)
/usr/local/go/src/runtime/os1_linux.go:150 +0x1ab
runtime.newm(0x555ce8, 0x0)
/usr/local/go/src/runtime/proc1.go:1105 +0x130
runtime.main.func1()
/usr/local/go/src/runtime/proc.go:48 +0x2c
runtime.systemstack(0x5c4300)
/usr/local/go/src/runtime/asm_amd64.s:262 +0x79
runtime.mstart()
/usr/local/go/src/runtime/proc1.go:674

goroutine 1 [running]:
runtime.systemstack_switch()
/usr/local/go/src/runtime/asm_amd64.s:216 fp=0xc820020770 sp=0xc820020768
runtime.main()
/usr/local/go/src/runtime/proc.go:49 +0x62 fp=0xc8200207c0 sp=0xc820020770
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1696 +0x1 fp=0xc8200207c8 sp=0xc8200207c0
...

I know the image is intended for amd64 machines, but is there advice for M1 Macs? Thanks.

@dzoladz
Copy link
Contributor

dzoladz commented Apr 10, 2023

Have you attempted upgrading the database container to a Mongo version/image that supports ARM64 architectures?

In docker-compose.yml, change the image version tag to 6.0.2 and retry the docker compose up -d command.

  ezpaarse_db:
    container_name: ezpaarse_db
    image: mongo:6.0.2
    restart: unless-stopped
    ```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants