Reputation: 983
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.
Upvotes: 86
Views: 49054
Reputation: 1083
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:\Users\YOUR_USER\.docker\contexts\meta\(some sha256)\meta.json
This meta.json file should be just full of NULLs or empty.
Done.
Notes:
Upvotes: 27
Reputation: 2981
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)
Upvotes: 61
Reputation: 4719
C:\Users\<YOUR-USER-NAME>\
.docker
directory. with .docker_temp
docker
docker-compose up --build
Its works!
Upvotes: 2
Reputation: 979
I couldn't get this working following all the suggestions. In the end I edited the empty meta.json file under C:\Users\USERNAME\.docker\contexts\meta\GUID\meta.json, and just pasted the following from a previously working file:
{"Name":"temp","Metadata":{"StackOrchestrator":"swarm"},"Endpoints":{"docker":{"Host":"unix:///var/run/docker.sock","SkipTLSVerify":false}}}
Then it started working again!
Upvotes: 0
Reputation: 45
Try to delete ".docker" folder. This helped in my case.
run- ".docker"- delete the folder
Upvotes: 2
Reputation: 4209
For Windows Users
.docker
directory. Which exists on PATH C:\Users\your-username\.docker
Upvotes: 186