spurin / diveintoansible-lab

Dive Into Ansible Lab
850 stars 531 forks source link

ERROR: Version in "./docker-compose.yaml" is unsupported. You might be seeing this error because you're using the wrong Compose file version. #74

Closed baditaflorin closed 2 years ago

baditaflorin commented 2 years ago

/diveintoansible-lab$ docker-compose up 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/

baditaflorin commented 2 years ago

Fixed by deleting the old version that I go using sudo apt install docker-compose and getting the latest version

spurin commented 2 years ago

Thanks for confirming @baditaflorin

I recommend Docker-compose 1.29 or the newer version 2 (which coincidently, Docker desktop on Windows is now using)