/usr/bin/env: ‘bashr’: No such file or directory when setting up Laravel Sail docker

I’m trying to setup Laravel Sail on Windows. I’ve followed step-by-step instructions from official Sail documentation, got to ./vendor/sail up. The initial process was long as stated but as soon as it finished all services run without problem except for sail docker container, which just shows /usr/bin/env: ‘bashr’: No such file or directory in log and exits. I’m using Ubuntu (WSL2). I’ve tried searching for this error, tried dos2unix, setting git config core.autocrlf but none of them seem to work. I also don’t think it’s a git issue since I’ve tried setting up example-app from sail and it had the same result.

Source: Docker Questions

LEAVE A COMMENT