Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Dodik's avatar
Level 5

Docker problem on Linux Mint

Hello, after wasting literally hours trying to run docker for Laravel+Vue I finally got it running, however when I try to sail up, it shows this error and I can't Google my way out of it. I also tried chatGPT but I'm just arguing with it, because it doesn't help either. Any help is appreciated.

ERROR: Invalid interpolation format for "laravel.test" option in service "services": "${APP_PORT:-80}:80"

0 likes
5 replies
LaryAI's avatar
Level 58

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.

street-coder's avatar

This error is because your system is currently running a program that is listening to port 80 ensure you stop all program is using port 80 and try sail up it will work

Dodik's avatar
Level 5

I killed all processes using that port and it still shows the error...

Dodik's avatar
Level 5

The problem was that I was on Linux Mint 20.3 Una which was not supported by Docker somehow... I upgraded to 21

Teodoro's avatar

For someone who has the same problem update your docker-compose to the latest version

1 like

Please or to participate in this conversation.