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:

version: “2”

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 ("2.0", "2.1", "3.0"). I would suggest changing it to the following:

version: "2"

Let me know if the errors still persist.


Your editor is injecting smart-quotes instead of normal ascii quotes here:

version: “2”

This needs to be:

version: "2"

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".