Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker-compose up 执行报错 #26

Open
9yues opened this issue Nov 5, 2024 · 12 comments
Open

docker-compose up 执行报错 #26

9yues opened this issue Nov 5, 2024 · 12 comments

Comments

@9yues
Copy link

9yues commented Nov 5, 2024

提出issues前请先确保你看完了部署文档

描述问题
docker-compose up 执行报错

日志和错误信息截图

$ docker-compose up
ERROR: The Compose file '.\docker-compose.yml' is invalid because:
Unsupported config option for services: 'yuyuwechatv2_client'

image

环境 (请完成以下信息):

•	OS: [例如:Ubuntu 20.04] win10
•	部署方式: [例如:Docker,  源码] Docker
•	Python版本: [例如:3.9.6] 无
•	其他相关信息: [例如:数据库,redis] 无

其他备注

@9yues
Copy link
Author

9yues commented Nov 5, 2024

浏览器输入http://127.0.0.1:8000/wechat/ping/ 收到pong

@9yues
Copy link
Author

9yues commented Nov 5, 2024

现在是这一步出错,找不到原因,谢谢大佬帮忙看看 docker-compose up

@xieyumc
Copy link
Owner

xieyumc commented Nov 5, 2024

你的docker compose文件是下载我的,还是复制我的,复制有时候可能会遗漏空格缩进

另外你可以试试docker compose v2

@9yues
Copy link
Author

9yues commented Nov 5, 2024

是下载您的

@9yues
Copy link
Author

9yues commented Nov 5, 2024

image

是不是我的docker版本有问题?

@xieyumc
Copy link
Owner

xieyumc commented Nov 5, 2024

我再次测试了一下,compose文件没什么问题

应该是你这边的问题,你可以试试docker compose v2

@9yues
Copy link
Author

9yues commented Nov 5, 2024

image

是这样执行吗?

@9yues
Copy link
Author

9yues commented Nov 5, 2024

这是我的 yml文件,是下载您的,没改过的

image

@xieyumc
Copy link
Owner

xieyumc commented Nov 5, 2024

文件看起来没问题,感觉是docker compose问题

docker compose v2的命令为:
docker compose up,即中间没有-

你安装v2后,再看看行不行

@9yues
Copy link
Author

9yues commented Nov 5, 2024

image
我这边提示这个,另外安装v2是什么?

@xieyumc
Copy link
Owner

xieyumc commented Nov 5, 2024

你现在这个报错意思是没有安装docker compose v2

我的意思就是让你安装docker compose v2

你去网上找找教程,安装后再试试

@9yues
Copy link
Author

9yues commented Nov 5, 2024

好的,我先试试

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants