How to Fix the Invalid Interpolation Format Error in Docker Compose

We run into a strange error when we added a new environment variable to our Docker Compose file:

ERROR: Invalid interpolation format for “environment” option in service “api”: “MY_KEY=Abc$5” Our docker-compose.yaml file looks like this:

The problem is the $ in the value of the environment variable MY_KEY. Docker allows a lot of …

Read more