报这个错是因为docker-compose版本为1.29.1,版本太高了,重新安装docker-compose 1.26.2就可以解决问题
百度网盘下载:https://pan.baidu.com/s/1cxuly3dRoZ8BgVklmxfriQ 密码:rcqi
I faced the same problem when using docker-compose 1.29.1. Downgrading to docker-compose 1.26.2 resolved this problem.
reinstall docker-compose 1.26.2
https://blog.csdn.net/robin90814/article/details/118188731
https://blog.51cto.com/u_13585440/3039247