mirror of https://github.com/docker/docs.git
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:
parent
fefc750abd
commit
43de808c91
|
@ -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: .
|
||||
|
|
Loading…
Reference in New Issue