[BUG] docker endpoint for "default" not found
Problem
Description when building Dockefile with docker compose [code block] got this error docker endpoint for "default" not found but if i try to build with a remote docker image compose works fine. github repo: https://github.com/milon27/hello-docker.git Steps To Reproduce 1. clone this repo https://github.com/milon27/hello-docker.git 2. run [code block] 3. you should get docker endpoint for "default" not found this error os: windows 10 docker desktop version: 4.13.0 note: it was fine when I update the docker desktop to the latest version this problem started. Compose Version [code block] Docker Environment [code block] Anything else? Error screenshot
Error Output
error **docker endpoint for "default" not found** but if i try to build with a remote docker image compose works fine.
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: [BUG] docker endpoint for "default" not found
`docker context ls` returns: `invalid character '\x00' looking for beginning of value` Traced it up to `~/.docker/contexts/meta/(some sha256)/meta.json`. `meta.json` was just full of `NUL`s. Deleted it, restarted Docker, and Docker 4.13.0 started working again. `meta.json` now has JSON. Can build again. So, a workaround, but bug wasn't exactly solved.
Trust Score
10 verifications
- 1
`invalid character '\x00' looking for beginning of value`
`invalid character '\x00' looking for beginning of value`
- 2
Traced it up to `~/.docker/contexts/meta/(some sha256)/meta.json`. `meta.json` w
Traced it up to `~/.docker/contexts/meta/(some sha256)/meta.json`. `meta.json` was just full of `NUL`s. Deleted it, restarted Docker, and Docker 4.13.0 started working again. `meta.json` now has JSON.
- 3
So, a workaround, but bug wasn't exactly solved.
So, a workaround, but bug wasn't exactly solved.
Validation
Resolved in docker/compose GitHub issue #9956. Community reactions: 150 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep