docker: Error response from daemon: the working directory 'C:/Program Files/Git/opt' is invalid, it needs to be an absolute path

Asked 2 months ago, Updated 2 months ago, 1 views

I try to install Ravel 9 using sail, but I get an error.

Git-bash to the location of the folder you want to install (or create)
Run Curl-s https://larvel.build/example-app|bash by following the Lavel official steps
*Example-app is 003_myapp

Then the following error occurred

$curl-s https://larvel.build/003_myapp|bash
docker: Error response from daemon: the working directory 'C:/Program Files/Git/opt' is invalid, it needs to be an absolute path.
See'docker run --help'.

Please provide your password so we can make some final adjustments to your application's permissions.

bash:line31: sudo:command not found

Thank you! We hope you build something accurate.Dive in with: cd003_myapp&./vendor/bin/sailup

I understand that Windows Subsystem for Linux 2 (WSL2) is required, but it seems that there is no problem as follows:

$wsl --list --verbose
  NAME STATE VERSION
* Ubuntu Running 2
  docker-desktop-data Running 2
  docker-desktop Running 2

docker settings
I don't know where to start, so it's stopped.
Thank you for your cooperation.

docker laravel

2022-09-30 11:03

1 Answers

I used this website as a reference and it worked.
The task itself had to be done in Ubuntu

Don't get lost!Building a Development Environment with Windows + Ravel Sail (Docker) Ready for Windows 10 Home


2022-09-30 11:03

If you have any answers or tips


© 2022 OneMinuteCode. All rights reserved.