Running $ docker-compose up when I have docker-compose.yml as shown below, everything works as expected:
app: build: .
However, when I have docker-compose.yml as (which seems to be valid in docker-compose reference ):
app: build: context: .
I get the following error:
$ docker-compose up ERROR: The Compose file './docker-compose.yml' is invalid because: app.build contains an invalid type, it should be a string
I also tried context: "." without joy. Please help! Many thanks.
string docker docker-compose
andyandy
source share