ERROR: Version in "./docker-compose.yml" is unsupported. You might be seeing this error because you're using the wrong Compose file version
The YAML is valid. However, you are using a left double quotation mark
“ like so:
Based on the error, seems like Docker Compose is not able to parse the version correctly. If you use a left double quotation mark instead of a quotation mark, the version which will be picked up by Docker compose will be
“2” and not
2, and hence it shall not be able to equate it to the supported versions (
"3.0"). I would suggest changing it to the following:
Let me know if the errors still persist.
Your editor is injecting smart-quotes instead of normal ascii quotes here:
This needs to be:
I'd recommend not writing yml files with that editor to avoid issues in the future.
As stated in the error logs you should replace it by "2.0" instead of simply "2".