From 43de808c91057be7653da89e53c552e8dfe983c3 Mon Sep 17 00:00:00 2001 From: hochan222 <201502766@hufs.ac.kr> Date: Wed, 11 Mar 2020 04:37:56 +0900 Subject: [PATCH] maybe version not update hochan@hochan-node:~/Desktop/pfc/dockercompose$ sudo docker-compose up --build ERROR: Version in "./docker-compose.yml" is unsupported. You might be seeing this error because you're using the wrong Compose file version. Either specify a version of "2" (or "2.0") 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. --- compose/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compose/index.md b/compose/index.md index 0e44d272be..605ef977f2 100644 --- a/compose/index.md +++ b/compose/index.md @@ -30,7 +30,7 @@ so they can be run together in an isolated environment. A `docker-compose.yml` looks like this: - version: '3' + version: '2.0' services: web: build: .