gpt4 book ai didi

How do I fix my docker-compose.yml file that is unable to load schema from 'https://raw.githubusercontent.com/compose-spec/compose-spec/(如何修复无法从‘https://raw.githubusercontent.com/compose-spec/compose-spec/加载架构的docker-compose.yml文件)

转载 作者:bug小助手 更新时间:2023-10-24 22:04:35 37 4
gpt4 key购买 nike



I am fairly new to docker. I use the latest versions of Python, Django, and Docker. I have been working on this project for two weeks now, I already created the docker-compose.yml file and have built my docker image since. Everything worked well and swimmingly before but today I tried to run docker-compose up and then I was hit hit with this issue:

我对码头公司还是个新手。我使用的是最新版本的Python、Django和Docker。我已经在这个项目上工作了两周了,我已经创建了docker-compose.yml文件,并且已经构建了我的docker映像。以前一切都运行得很顺利,但今天我试着把Ducker-Compose弄上去,然后我就遇到了这个问题:


Unable to load schema from 'https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json': Request vscode/content failed unexpectedly without providing any details.

无法从‘https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json’:请求加载架构vscode/内容意外失败,未提供任何详细信息。


This is what my docker-compose.yml file looks like:

我的docker-compose.yml文件如下所示:


version: "3.9"

services:
db:
image: postgres:15
volumes:
- postgres-data:/var/lib/postgresql/data
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=2030
- POSTGRES_DB=ikengaBK
ports:
- "5432:5432"
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 5s
timeout: 10s
retries: 5

I have checked the GitHub connection to the VSCode app and that checks out. I don't know what else could be the issue. Can someone help me sense of this issue?

我已经检查了GitHub与VSCode应用程序的连接,结果是正确的。我不知道还会有什么问题。有没有人能帮我了解一下这个问题?


For further context, I only started noticing this issue tonight, other days the docker-compose file has worked well and fine.

至于进一步的背景,我只是在今晚才开始注意到这个问题,其他日子里,docker-compose文件工作得很好。


更多回答

Is this the full docker-compose.yml ? because I just added volumes: postgres-data: and did work perfectly fine

这是完整的docker-compose.yml吗?因为我刚刚添加了卷:postgres-data:并且确实运行得非常好

No it's not. In the full one postgres is included

不,不是的。在完整的一份中包括了波斯格雷斯

优秀答案推荐
更多回答

37 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com