Cannot run drush inside my container

I’m using W10 Pro, a recipe with lando that is working in Ubuntu 18.04 LTS, but it fails to work on Windows.

Primary error
OCI runtime exec failed: exec failed: container_linux.go:346: starting container process caused "exec format error": unknown

Inside the shell on a service
/usr/bin/env: 'php\r': No such file or directory

Anyone has any idea what I should do. I’m not really familiar with Docker/Lando that much, I’m just a regular user trying to figure it out

This looks like an error with a Windows cr/lf line ending. Do you mount files into the container that you have edited with a Windows editor like Notepad?

Well, as far as I know, no. This was done all on Ubuntu 18.04 LTS and it’s working perfectly there. I’m using lando to start everything, so all I have to do is do lando drush cr.