Skip to content

Commit 0cc3c30

Browse files
committed
testutil: expose underlying docker address for supported workers
Signed-off-by: Justin Chadwell <[email protected]>
1 parent 849d014 commit 0cc3c30

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

util/testutil/integration/dockerd.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ func (c Moby) New(ctx context.Context, cfg *BackendConfig) (b Backend, cl func()
212212

213213
return backend{
214214
address: "unix://" + listener.Addr().String(),
215+
dockerAddress: d.Sock(),
215216
rootless: c.IsRootless,
216217
isDockerd: true,
217218
unsupportedFeatures: c.Unsupported,

util/testutil/integration/run.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ func init() {
3535
// Backend is the minimal interface that describes a testing backend.
3636
type Backend interface {
3737
Address() string
38+
DockerAddress() string
3839
ContainerdAddress() string
3940
Rootless() bool
4041
Snapshotter() string

util/testutil/integration/sandbox.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ const buildkitdConfigFile = "buildkitd.toml"
2222

2323
type backend struct {
2424
address string
25+
dockerAddress string
2526
containerdAddress string
2627
rootless bool
2728
snapshotter string
@@ -33,6 +34,10 @@ func (b backend) Address() string {
3334
return b.address
3435
}
3536

37+
func (b backend) DockerAddress() string {
38+
return b.dockerAddress
39+
}
40+
3641
func (b backend) ContainerdAddress() string {
3742
return b.containerdAddress
3843
}

0 commit comments

Comments
 (0)