如题错误一般是docker-compose.yml的空格缩进问题导致,例如:
version: "3.0" services: web: build: . ports: - "5000:5000" networks: # 缩进不对 - basic redis: image: "redis:alpine" networks: - basic networks: basic: