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.
This commit is contained in:
hochan222 2020-03-11 04:37:56 +09:00 committed by GitHub
parent fefc750abd
commit 43de808c91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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: .