I am trying to run airflow server in my local using docker-compose. I have Amazon Linux 2 OS (Cent OS 8).
I'm getting the following error:
ERROR: Version in "./docker-compose.yaml" is unsupported. You might be seeing this error because you're using the wrong Compose file version. Either specify a supported version (e.g "2.2" or "3.3") and place your service definitions under the `services` key, or omit the `version` key and place your service definitions at the root of the file to use version 1.
For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/
My docker-compose version: docker-compose version 1.22.0, build f46880fe
If I change the version in docker-compose, I can spin up the server. So, it seems I need to upgrade my docker-compose.
How can I upgrade my docker-compose version in cent os 8? Note: I am not really familiar with non-debian commands.