为了账号安全,请及时绑定邮箱和手机立即绑定

docker-compose up -d 启动报错

ERROR: The Compose file './docker-compose.yml' is invalid because:

Invalid top-level property "db". Valid top-level sections for this Compose file are: services, version, networks, volumes, and extensions starting with "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/


正在回答

1 回答

.yml文件里面version是不是错了,写得几啊?

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

docker-compose up -d 启动报错

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信