The error message suggests that there is an issue with the interpolation format in the "laravel.test" option in the "services" section of your Docker configuration file. Specifically, it seems that the format "${APP_PORT:-80}:80" is causing the problem.
To fix this issue, you need to ensure that the interpolation format is correct. The correct format should be "${APP_PORT:-80}:80".
Here's an example of how you can update your Docker configuration file:
services:
laravel.test:
build:
context: .
dockerfile: Dockerfile
ports:
- "${APP_PORT:-80}:80"
Make sure to replace the existing configuration with the updated one. After making the changes, try running the "sail up" command again and see if the error persists.
If you're still encountering issues, it's possible that there might be other problems with your Docker setup. In that case, it would be helpful to provide more details about your Docker configuration and any other error messages you're receiving.