There are a lot of ways to confuse Compose with a badly-formed docker-compose.yml. This file should be checked when it is read and good error messages should be produced to help users fix the problem.
This could be done by producing a schema for the file, like was done in #1348.
These sorts of things should be checked:
References: #117 #127
There are a lot of ways to confuse Compose with a badly-formed
docker-compose.yml. This file should be checked when it is read and good error messages should be produced to help users fix the problem.This could be done by producing a schema for the file, like was done in #1348.
These sorts of things should be checked:
image) - are numbers allowed? When? Don't accept YAML's eager interpretation of values (e.g.true) which should be quoted (docker-compose does not pass environment variables true/false unchanged #1788)volumes) either must be a list, or we helpfully wrap single values in a list for youcommand,entrypoint)environment)volumes- see Error when specifying permission in volume #260)References: #117 #127