How to fix - ERROR: Version in "./docker-compose.yml" is invalid.

Publié le: 13 septembre 2020
sur la chaîne: Rahul Wagh
10,699
48

In this lab session we are going to fix the error - "ERROR: Version in "./docker-compose.yml" is invalid. 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.

"


This is the most common issue when you specify the different version numbers in your docker-compose.yml but docker expects you to specify a higher or correct version.


For more details please refer to the official Docker documentation - https://docs.docker.com/compose/compo...


Want to learn more about DevOps please follow - https://jhooq.com


Disclaimer/Policy: All the content/instructions are solely mine. The source is completely open-source.

Video is copyrighted and it can not be re-distributed on any platform.


Sur cette page du site, vous pouvez voir la vidéo en ligne How to fix - ERROR: Version in "./docker-compose.yml" is invalid. durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Rahul Wagh 13 septembre 2020, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 10,699 fois et il a aimé 48 téléspectateurs. Bon visionnage!