应该使用docker compose 而不是docker-compose(废弃的1.0版本)
env: WSL Ubuntu-22.04
报错关键字如下
File "/usr/lib/python3/dist-packages/compose/service.py", line 1579, in get_container_data_volumes
container.image_config['ContainerConfig'].get('Volumes') or {}
KeyError: 'ContainerConfig'
docker-compose -f docker-compose-local.yml up
ERROR: The Compose file './docker-compose-local.yml' is invalid because:
'name' does not match any of the regexes: '^x-'
标签:compose,container,get,报错,ContainerConfig,docker
From: https://www.cnblogs.com/darksheep/p/18576228