spurin / diveintoansible-lab

Dive Into Ansible Lab
788 stars 498 forks source link

error #69

Closed morothebest closed 2 years ago

morothebest commented 2 years ago

@spurin

received the below

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/

below is the docker compose.yaml

version: '3.8' # if no version is specificed then v1 is assumed. Recommend v2 minimum

services: ubuntu-c: hostname: ubuntu-c container_name: ubuntu-c image: spurin/diveintoansible:ansible ports:

networks: diveinto.io: name: diveinto.io

spurin commented 2 years ago

Hi @morothebest

This is an incorrect version of docker-compose. If you install via apt or yum, it is unfortunately an old version. Can you please grab a version from the releases section of the docker-compose github repo. This is what I do in the Linux setup video for reference.

Best Regards

James