I'm trying to docker up a laravel application with laravel sail, but I get the following error for the sail container:
/usr/bin/env: 'bash\r': No such file or directory
The error of this from what I read is caused only in windows because when cloning the project repository the option of core.autocrlf is true, but this option was set to false in all the git config of the system, but it keeps throwing the same error, even give up docker and the ubuntu virtual machine but it keeps throwing the same error. I enclose what the git config -l command throws:
file:C:/Program Files/Git/etc/gitconfig diff.astextplain.textconv=astextplain
file:C:/Program Files/Git/etc/gitconfig filter.lfs.clean=git-lfs clean -- %f
file:C:/Program Files/Git/etc/gitconfig filter.lfs.smudge=git-lfs smudge -- %f
file:C:/Program Files/Git/etc/gitconfig filter.lfs.process=git-lfs filter-process
file:C:/Program Files/Git/etc/gitconfig filter.lfs.required=true
file:C:/Program Files/Git/etc/gitconfig http.sslbackend=openssl
file:C:/Program Files/Git/etc/gitconfig http.sslcainfo=C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
file:C:/Program Files/Git/etc/gitconfig core.autocrlf=false
file:C:/Program Files/Git/etc/gitconfig core.fscache=true
file:C:/Program Files/Git/etc/gitconfig core.symlinks=true
file:C:/Program Files/Git/etc/gitconfig pull.rebase=false
file:C:/Program Files/Git/etc/gitconfig credential.helper=manager-core
file:C:/Program Files/Git/etc/gitconfig credential.https://dev.azure.com.usehttppath=true
file:C:/Program Files/Git/etc/gitconfig init.defaultbranch=master
file:C:/Users/hpbay/.gitconfig core.editor="C:\Users\hpbay\AppData\Local\Programs\Microsoft VS Code\bin\code" --wait
file:C:/Users/hpbay/.gitconfig core.autocrlf=false
I had this error on another machine and the solution was to set the core.autocrlf to false, but on this machine it performs many tests and the same error continues, does anyone have any idea what it could be besides the core.autocrlf? or at least see a more detailed error?