You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
... the documentation does not mention anything about my problem
... there are no open or closed issues that are related to my problem
Description
Under very specific conditions bootstrapping a driver can panic here due to a nil progress.Writer.
The flow seems to be:
In build cmd drivers are resolved explicitly here via nodeResolver.Resolve
This calls nodeResolver.boothere with a valid progress.Writer
Later there is another boot call here via resolvedNode.Client
Which calls nodeResolver.boothere with a nil progress.Writer
The actual problem is that later on, here, driver.Boot calls driver.Info and, if the status is not Running, it tries to bootstrap it again.
This panics due to the nil progress.Writer
In order to reproduce this the driver must not be Running by the time the second boot call happens, which is a bit of an edge case, but possible AFAICT.
In order to force this to reproduce we can simply patch e.g. the remote driver to always return Inactive.
Contributing guidelines
I've found a bug and checked that ...
Description
Under very specific conditions bootstrapping a driver can panic here due to a nil
progress.Writer
.The flow seems to be:
nodeResolver.Resolve
nodeResolver.boot
here with a validprogress.Writer
resolvedNode.Client
nodeResolver.boot
here with a nilprogress.Writer
driver.Boot
callsdriver.Info
and, if the status is notRunning
, it tries to bootstrap it again.progress.Writer
In order to reproduce this the driver must not be Running by the time the second boot call happens, which is a bit of an edge case, but possible AFAICT.
In order to force this to reproduce we can simply patch e.g. the
remote
driver to always return Inactive.Expected behaviour
No panic. An error message related to the driver state not being Running.
Actual behaviour
Buildx version
github.com/docker/buildx v0.14.0-36-gafcb6099.m afcb609.m
Docker info
No response
Builders list
Configuration
buildx checkout
◊ ./bin/build/buildx create --name remote --driver remote tcp://localhost:1234
◊ ./bin/build/buildx build --builder remote --progress plain .
Build logs
No response
Additional info
No response
The text was updated successfully, but these errors were encountered: