Ryan Wang 👍
管理您好,我在执行 docker-compose up的时候,提示我这个错误
ERROR: The Compose file './docker-compose.yml' is invalid because:
'True' does not match any of the regexes: 'x-'
You might be seeing this error because you're using the wrong Compose file version. Either specify a supported version (e.g "2.2" or "3.3") and place your service definitions under the services
key, or omit the version
key and place your service definitions at the root of the file to use version 1.
For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/
我的操作流程是 mkdir ~/halo && cd ~/halo
然后vim docker-compose.yml 使用的是创建 Halo + PostgreSQL 的实例:下边的代码,仅仅修改里边的密码
然后 :wq 保存, 然后执行docker-compose up
就出现那个错误。 请问有解吗
尝试删除了 注释, 又有新问题,我在研究研究