Closed eltbus closed 2 weeks ago
How did you build the myapi
image? Via docker build
or another tool?
Is this reproducible? With different images or just this one?
Also, can you open the Docker Desktop Troubleshoot
menu (from the 🐳 menu in the macOS menu bar), choose Get Support
, wait for diagnostics, upload and then share the ID here?
If this is not a persistent issue, it might be something corrupted in Docker Desktop, so you could also try Clean / Purge Data
from that same menu (take a diag first!) to reset Docker Desktop's VM -- you will lose all your local containers/images/volumes/etc! So make sure you don't have anything vital that's not backed up.
I was hitting this as well when building and attempting to start a container from the go client.
After downgrading I got a more helpful error message (thank you for reporting this so I downgraded docker desktop to 4.19):
Error: error creating: error: %!w(string=Error response from daemon: image with reference registry:latest was found but does not match the specified platform: wanted darwin/arm64, actual: linux/arm64/v8)
Then I was able to determine I was building with the wrong platform/arch for m1 and adjust to passing
Platform: "linux/arm64/v8"
when calling ImageBuild()
and
&ocispec.Platform{
Architecture: "arm64/v8",
OS: "linux",
}
when calling ContainerCreate()
Long story short maybe your image is built for the wrong platform/architecture.
Seems like the error reporting for this case regressed somewhere in docker-desktop or its dependencies between 4.19 and the current latest stable
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as not stale anymore due to the recent activity.
Closing this issue as this is 1 year old. If the error still persists please feel free to re-open this issue.
Description
Stopped working after updating Docker Desktop.
docker compose up
error that seems to reference a custom image (in my example 69c50130ce91).Yields the following error:
Steps To Reproduce
Replace api with custom image.
My compose.yaml
Compose Version
Docker Environment
Anything else?
No response