-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
laradock_apache2_1 exited with code 2 on Mac M1 #3086
Comments
Had this issue also, fixed it with info from webdevops/Dockerfile#395. That said, now my docker file is not usable on non M1 architectures, so I am definitely interested in a proper Laradock solution. |
To save some debug time of others: on M1 I added the following in the apache2/Dockerfile
On Intel this should not run of course, so either comment it out or make it architecture dependent. |
Add on .env file And in your apache2/Dockerfile:
|
Same problem here! On a Mac Silicon computer (MacBook Pro 2021):
Running Docker Desktop for Apple M1 (v.4.3.0) on MacOS Monterey 12.01 |
The solution, after much investigation:
Should work fine now! |
Thank you! |
Hi 👋 this issue has been automatically marked as |
Hi again 👋 we would like to inform you that this issue has been automatically |
I sent a PR to solve this topic |
I still wasn't able to run it today on my M2. Had to manually add: services: Only then it started properly. |
Description:
For the first time when I install laradock on Mac M1 (OS mac Big Sur); rest all container are running well. and status is Up.
Only "Apache2" is not getting started with this error:
"laradock_apache2_1 exited with code 2"
Expected Behavior:
No local apache is running. So docker apache should be in working state.
Context information:
Output of
git rev-parse HEAD
c7cb79e
Output of
docker version
Output of
docker-compose version
System info: Mac, Windows or Linux. Include which disto/version
Steps to reproduce the issue:
Stacktrace & Additional info:
The text was updated successfully, but these errors were encountered: