jobcespedes / docker-compose-moodle

This project quickly builds a local workspace for Moodle (Apache2, PHP-FPM with XDEBUG y Postgres) using containers for each of its main components. The local workspace is built and managed by Docker Compose
Apache License 2.0
52 stars 28 forks source link

docker-compose up -d fails in M1 Mac #17

Closed acyment closed 1 month ago

acyment commented 1 year ago

I know this has only been tried in Linux (Intel processor I assume). The apache container fails like this:

2023-04-19 15:37:33 runtime stack:
2023-04-19 15:37:33 runtime.throw(0x6430dc, 0x9)
2023-04-19 15:37:33     /usr/local/Cellar/go/1.8.1/libexec/src/runtime/panic.go:596 +0x95
2023-04-19 15:37:33 runtime.newosproc(0xc420024000, 0xc420034000)
2023-04-19 15:37:33     /usr/local/Cellar/go/1.8.1/libexec/src/runtime/os_linux.go:163 +0x18c
2023-04-19 15:37:33 runtime.newm(0x650dd0, 0x0)
2023-04-19 15:37:33     /usr/local/Cellar/go/1.8.1/libexec/src/runtime/proc.go:1628 +0x137
2023-04-19 15:37:33 runtime.main.func1()
2023-04-19 15:37:33     /usr/local/Cellar/go/1.8.1/libexec/src/runtime/proc.go:126 +0x36
2023-04-19 15:37:33 runtime.systemstack(0x75bb00)
2023-04-19 15:37:33     /usr/local/Cellar/go/1.8.1/libexec/src/runtime/asm_amd64.s:327 +0x79
2023-04-19 15:37:33 runtime.mstart()
2023-04-19 15:37:33     /usr/local/Cellar/go/1.8.1/libexec/src/runtime/proc.go:1132
2023-04-19 15:37:33 
2023-04-19 15:37:33 goroutine 1 [running]:
2023-04-19 15:37:33 runtime.systemstack_switch()
2023-04-19 15:37:33     /usr/local/Cellar/go/1.8.1/libexec/src/runtime/asm_amd64.s:281 fp=0xc420020788 sp=0xc420020780
2023-04-19 15:37:33 runtime.main()
2023-04-19 15:37:33     /usr/local/Cellar/go/1.8.1/libexec/src/runtime/proc.go:127 +0x6c fp=0xc4200207e0 sp=0xc420020788
2023-04-19 15:37:33 runtime.goexit()
2023-04-19 15:37:33     /usr/local/Cellar/go/1.8.1/libexec/src/runtime/asm_amd64.s:2197 +0x1 fp=0xc4200207e8 sp=0xc4200207e0

It seems that the image being used is only compiled for Intel.

Tks!