move moby check to driver interface

Driver caching masked the method detection

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
Tonis Tiigi
2020-10-15 00:07:35 -07:00
parent 5bf2ff98c9
commit 232af9aa0d
5 changed files with 16 additions and 16 deletions

View File

@ -32,6 +32,10 @@ type Driver struct {
env []string
}
func (d *Driver) IsMobyDriver() bool {
return false
}
func (d *Driver) Bootstrap(ctx context.Context, l progress.Logger) error {
return progress.Wrap("[internal] booting buildkit", l, func(sub progress.SubLogger) error {
_, err := d.DockerAPI.ContainerInspect(ctx, d.Name)