I have a project that I am running locally with Laravel Sail. I am trying to give my configuration to my team so that we can all share the same configuration. To test this process I started with a fresh machine (macOS) and got docker and composer running. I cloned the repository and composer installed to get the sail binary.
I've aliased ./vendor/bin/sail to sail. At this point running sail up -d I get a spam of 12 instances of : command not found followed by 1 error(s) decoding:
Additionally, if I add an APP_PORT entry to my .env, such as APP_PORT=60000, I end up getting these errors:
* error decoding 'ports': Invalid hostPort: 60000
1 error(s) decoding:
* error decoding 'ports': Invalid hostPort: 60000
Sail will continue IF I don't have an APP_PORT set in my .env after the "command not found" spam. However, I need to be able to set the APP_PORT due to multiple projects conflicting otherwise.
So far, I have tried installing multiple versions of sail ranging from 1.18.0 to 1.25.0 and all have had this issue. I have reproduced this on two machines, an Mac with M2 chip and another with an intel chip.
I have had success with using docker compose directly by doing docker-compose up -d instead of using sail.
I've used sail for over a year and never had these types of issues, especially nothing with such sparse errors. I'd appreciate any direction or ideas if anyone has any.