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:
docker-compose up --build
and this message is shown to me:
docker endpoint for "default" not found.
I’ll be more than happy if somebody helps me. When I write this command for the first time I had an internet problem it got paused, in second time started to download something then this message printed.
I tried to delete my old Containers, also I try with my VPN on and off, and restart docker in PowerShell.
7
Answers
Try to delete ".docker" folder.
This helped in my case.
For Windows Users
.docker
directory. Which exists on PATHC:Usersyour-username.docker
This comment helped me better then nuking the whole directory:
https://github.com/docker/compose/issues/9956#issuecomment-1294483086
(check an empty meta.json in ~/.docker/contexts/meta/(somelong hash)/meta.json, delete it)
Try to delete ".docker" folder. This helped in my case.
run- ".docker"- delete the folder
I couldn’t get this working following all the suggestions. In the end I edited the empty meta.json file under C:UsersUSERNAME.dockercontextsmetaGUIDmeta.json, and just pasted the following from a previously working file:
Then it started working again!
Please follow these steps bellow:
Stop Docker Desktop and all containers.
Go to path:
~/.docker/contexts/meta/(some sha256)/meta.json
Using Windows it should be on:
C:UsersYOUR_USERmeta(some sha256)meta.json
This meta.json file should be just full of NULLs or empty.
Done.
Notes:
C:Users<YOUR-USER-NAME>
.docker
directory. with.docker_temp
docker
docker-compose up --build
Its works!