Options: --resolve-image-digests Pin image tags to digests. --no-interpolate Don't interpolate environment variables. -q, --quiet Only validate the configuration, don't print anything. --services Print the service names, one per line. --volumes Print the volume names, one per line. --hash="*" Print the service config hash, one per line. Set "service1,service2" for a list of specified services or use the wildcard symbol to display all services.
# 报错提示 $ docker-compose config ERROR: yaml.parser.ParserError: while parsing a block mapping in"./docker-compose.yml", line 1, column 1 expected <block end>, but found '<block mapping start>' in"./docker-compose.yml", line 2, column 3 $ docker-compose config ERROR: Named volume "demo-logs:/logs:rw" is used in service "demo" but no declaration was found in the volumes section.