Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Docker is not running when run curl command to create new laravel project

I just start learning laravel, and follow the tutorial from https://laravel.com/docs/8.x/installation "Getting started on Windows" . I manage to install Docker Desktop and COnfigured to use WSL2 Backend.

When I run the command curl -s https://laravel.build/example-app | bash to create laravel application directory from cmd, this warning come out Docker is not running.

I run curl using command prompt. (cmd).

Update:

So, I run the command in Windows Terminal:.

PS E:\Play> curl -s https://laravel.build/example-app | bash

Here is the response I get:

cmdlet Invoke-WebRequest at command pipeline position 1
Supply values for the following parameters:
Uri:

Any Idea what to do?

like image 207
Waller Avatar asked Feb 11 '21 00:02

Waller


2 Answers

Try to explicitly enable integration with your distro in Docker settings: enter image description here

After that relaunch your WSL2 terminal & try again. That should help. You can also open https://laravel.build/example-app in a browser & check what commands the script is running: and run them manually to check the output for any errors.

like image 186
Dmitrii Avatar answered Sep 23 '22 00:09

Dmitrii


You need to install a linux distro, and then in Windows Terminal create a new tab for the linux distro and run the command there, not in a windows powershell tab.

like image 38
Bob bobbington Avatar answered Sep 24 '22 00:09

Bob bobbington