-
Notifications
You must be signed in to change notification settings - Fork 83
Postinstall script error: Docker is not running - Mac M1 #336
Comments
I'm experiencing the same issue on my M1 mac. Commenting to subscribe. |
I got the same issue with M1 chip after updating the Docker to the latest version. But with the Docker Desktop, I could start it manually. Now |
Happened on my M1 MBP too after updating Docker Desktop to latest version! I had to downgrade to Docker Desktop version 4.17.0, and it fixed the |
Also hitting this on an M2 chip and haven't found a way around it with the latest version. Rolling back to |
Hi all 👋 Can you do me a massive favour and check if the following opinion is checked, please: WP Local Docker is still using |
I managed to resolve this issue by enabling two settings under Advanced in the Settings. I checked "Allow the default Docker socket to be used" and "Allow privileged port mapping." These settings required a Docker restart. This fixed previous installs and allowed new site generation. However, for a new site, it did not update my /etc/hosts file. To fix this, I ran System Specifications
|
Anyone experiencing this issue on a Debian system (Ubuntu in my case)
The package looks for the standard location of the docker.sock file, but for Docker Desktop that changed positions a while ago. |
Troubleshooting
Describe the bug
Running
npm install wp-local-docker -g
results in the following errorIf I run the commands separately like in this comment the same error happens in
10updocker create
.Error : Docker is not running...
This is the output of
docker info
:Steps to Reproduce
1 - Start Docker from the Desktop app.
2 - Open a command line and run
npm install wp-local-docker -g
Expected behavior:
10updocker is installed
Current behavior:
Error output:
Screenshots, screen recording, code snippet
No response
Environment information
Code of Conduct
The text was updated successfully, but these errors were encountered: