-
Notifications
You must be signed in to change notification settings - Fork 510
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
builder: extra init error handling #1732
Conversation
60f3d87
to
e4a27ec
Compare
e4a27ec
to
27878f7
Compare
@crazy-max: Got a response here:
I guess in this case it's Engine but without buildx plugin, which was my suspicion. So if we can return a predictable error here, Compose can also show a nice error, kind of like
|
This is not from the same user reporting the issue with Docker 20.10. This is one is with Docker 23 but I'm not able to repro on my side, see docker/compose#10453 (comment) |
I managed to reproduce this purely by chance this weekend while working on a personal project in a really silly way: docker --context=doesnotexist buildx bake foo I'm doing cursed things that require me to switch back and forth between an AMD64 + ARM64 Docker context so kept explicitly passing Docker context. FWIW I'm using So making a typo here is an easy way to trigger it at least 🙃 |
Ok that's interesting. With Docker Desktop I'm not able to repro:
But on a server or using a dind image I repro:
On Docker Desktop if I invoke buildx in standalone mode I'm able to repro:
So my guess is the proxy on DD does something with the context. |
27878f7
to
bff9d2a
Compare
@thaJeztah Do you think it'd be reasonable for |
Yep, not the proxy, but |
* Return errors from creating the `NodeGroup` * Ensure that `b.NodeGroup != nil` before reading from it during validation Signed-off-by: Milas Bowman <milas.bowman@docker.com>
bff9d2a
to
14f5d49
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM thanks
NodeGroup
b.NodeGroup != nil
before reading from it during validationDetails
This was reported by a Compose user: