docker-node-example icon indicating copy to clipboard operation
docker-node-example copied to clipboard

Invalid interpolation format

Open minhduc19 opened this issue 5 years ago • 3 comments

Hi Nick,

When I try to run docker-compose up --build , I got this error:

ERROR: Invalid interpolation format for "build" option in service "x-app": "NODE_ENV=${NODE_ENV:-production}"

Do you think this is a problem about docker version?

Many thanks

minhduc19 avatar Jul 03 '21 16:07 minhduc19

Hi,

What version of Docker Compose do you have? You can check with docker-compose --version.

It sounds like you might have an old version (years old) which doesn't support export , but 1.26+ supports that so if you upgrade to at least 1.26+ then you should be good to go.

nickjj avatar Jul 03 '21 23:07 nickjj

Hi,

Yes, that's the problem! I run it on online Docker lab and assumed they have the latest version of Docker compose. Obviously, it was not!

minhduc19 avatar Jul 03 '21 23:07 minhduc19

I should probably mention this in the readme because it's come up twice already in the other example app repos.

Thanks for the report!

nickjj avatar Jul 03 '21 23:07 nickjj