-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Description
What problem does this address?
The current documentation and wp-env npm package displays the error message "Could not connect to Docker. Is it running?" even when Docker is running and all troubleshooting steps have been followed. However, this error can also occur when the Docker Compose plugin is not installed or it's not in the path. Since Docker Compose is not included with Docker by default, this can confuse users who repeatedly troubleshoot the Docker daemon without realizing that the issue lies with the missing docker-compose. I have attached screenshots from Visual Studio Code and Terminal for additional context.
What is your proposed solution?
The proposed solution is for the npm package to provide a more verbose error message and check whether the problem lies with the Docker daemon itself or if Docker Compose plugin is missing. Additionally, the documentation should be updated to advise users to check if docker-compose is installed on their system and provide instructions on how to install it if it is not.
Changes proposed for next line:
gutenberg/packages/env/lib/cli.js
Line 92 in 053413e
| execSync( 'docker info', { stdio: 'ignore' } ); |
