You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using a list of mappings (dashes and colon) in docker compose causes an error, when using docker compose config, that is hard to read and therefore fix.
e.g. the following code mixes a list with mappings:
running docker compose config returns the following error message: panic: interface conversion: interface {} is string, not map[string]interface {}
It would be better, if this was caught and a meaningful error message would be displayed, the help users fix the error. e.g. a line number and more descriptive text.
Description
Using a list of mappings (dashes and colon) in docker compose causes an error, when using
docker compose config
, that is hard to read and therefore fix.e.g. the following code mixes a list with mappings:
running
docker compose config
returns the following error message:panic: interface conversion: interface {} is string, not map[string]interface {}
It would be better, if this was caught and a meaningful error message would be displayed, the help users fix the error. e.g. a line number and more descriptive text.
see previous discussion in #11267
Steps To Reproduce
Have this in a docker-compose file:
Run:
docker compose config
Get error:
panic: interface conversion: interface {} is string, not map[string]interface {}
Compose Version
Docker Environment
Client: Docker Engine - Community
Version: 25.0.3
Context: default
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc.)
Version: v0.12.1
Path: /usr/libexec/docker/cli-plugins/docker-buildx
compose: Docker Compose (Docker Inc.)
Version: v2.24.6
Path: /usr/libexec/docker/cli-plugins/docker-compose
Anything else?
No response
The text was updated successfully, but these errors were encountered: