docker yaml name does not match nay of regexes ‘^x-’
这个问题在docker-compose2 已经修复了。
https://github.com/docker/compose/issues/9412
如果使用低版本的docker-compose需要卸载
apt remove docker-compose
apt install docker-compose-plugin
如果这种安装不行,就去官网找手动安装
手动安装后,记得alias docker-compose 到 docker compose
哈哈哈
官方手动安装网址
https://docs.docker.com/compose/install/linux/#:~:text=For%20Ubuntu%20and%20Debian%2C%20run%3A%20%24%20sudo%20apt-get,Compose%20is%20installed%20correctly%20by%20checking%20the%20version.