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

[1.x] Don't error when docker is not available #468

Merged
merged 2 commits into from
Aug 17, 2022

Conversation

jessarcher
Copy link
Member

@jessarcher jessarcher commented Aug 17, 2022

This PR fixes a misleading error message caused by #467.

When installing Laravel via laravel.build, the sail:install command is run inside a temporary container (source). When inside this container, the docker pull and docker build commands fail and display a message saying "Is Docker running?" which is misleading. The installation continues regardless of this error, leaving the installation in the same state as prior to #467.

It's non-trivial to run Docker commands inside a container, so this PR just adds a guard that silently returns if Docker is not available, instead of displaying the error. The logic for determining the presence of Docker is the same as the sail command itself.

I have created a separate PR for laravel.build that adds the functionality from #467 when using that installation method.

@jessarcher
Copy link
Member Author

I considered reverting the change, but I think this feature is really worth-while, especially for new users.

@taylorotwell taylorotwell merged commit 853dea1 into 1.x Aug 17, 2022
@taylorotwell taylorotwell deleted the sail-build-in-docker branch August 17, 2022 13:17
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

Successfully merging this pull request may close these issues.

2 participants