简体   繁体   English

Docker 未找到“默认”端点

[英]Docker endpoint for "default" not found

I did clone a project and in the first step when I tried to start the container, I did run windows CMD in my project root and I type this command:我确实克隆了一个项目,在我尝试启动容器的第一步中,我确实在我的项目根目录中运行了 windows CMD 并键入了以下命令:

docker-compose up --build

and this message is shown to me:这条消息显示给我:

docker endpoint for "default" not found. docker 未找到“默认”端点。

I'll be more than happy if somebody helps me.如果有人能帮助我,我会非常高兴。 When I write this command for the first time I had an inte.net problem it got paused, in second time started to download something then this message printed.当我第一次写这个命令时,我遇到了一个 inte.net 问题,它被暂停了,第二次开始下载一些东西,然后打印了这条消息。

I tried to delete my old Containers, also I try with my VPN on and off, and restart docker in PowerShell.我试图删除我的旧容器,我也尝试打开和关闭我的 VPN,然后在 PowerShell 中重新启动 docker。

Try to delete ".docker" folder.尝试删除“.docker”文件夹。 This helped in my case.这对我有帮助。

run- ".docker"- delete the folder运行-“.docker”-删除文件夹

Try to delete ".docker" folder.尝试删除“.docker”文件夹。 This helped in my case.这对我有帮助。

For Windows Users对于 Windows 用户

  1. Delete .docker directory.删除.docker目录。 Which exists on PATH C:\Users\your-username\.docker存在于 PATH C:\Users\your-username\.docker
  2. Restart docker.重新启动泊坞窗。

This comment helped me better then nuking the whole directory:这条评论帮助我更好地对整个目录进行核对:

https://github.com/docker/compose/issues/9956#issuecomment-1294483086 https://github.com/docker/compose/issues/9956#issuecomment-1294483086

(check an empty meta.json in ~/.docker/meta/contexts//meta.json, delete it) (在~/.docker/meta/contexts//meta.json中检查一个空的meta.json,删除它)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM