Unsupported Compose file version: 2

Hello. I created a machine for my docker in Mac. I initialized the swarm and tried to deploy the app that I have already deployed in another machine with no problem. I got the following error:

**unsupported Compose file version: 2**

I have tested the machine for Compose version ‘3’, but I could not find any solution for this error that my Compose file is version 2. Does any one have any solution for this?

Why would you not use version 3?
Also quick question, why are you creating a machine and not using Docker for Mac? It’s a much nicer experience. Unless you need to run multiple machines on your Mac.

Thanks for the response. I used the Docker for Mac and it was working better.