Skip to content

Commit 259fddb

Browse files
committed
downgrade docker to 27
1 parent 4711dff commit 259fddb

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

testing/docker.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import (
1515
"strings"
1616
"testing"
1717

18+
dockertypes "github.com/docker/docker/api/types"
1819
dockercontainer "github.com/docker/docker/api/types/container"
1920
dockerimage "github.com/docker/docker/api/types/image"
2021
dockernetwork "github.com/docker/docker/api/types/network"
@@ -63,7 +64,7 @@ type DockerContainer struct {
6364
Cmd []string
6465
ContainerId string
6566
ContainerName string
66-
ContainerJSON dockercontainer.InspectResponse
67+
ContainerJSON dockertypes.ContainerJSON
6768
containerInspected bool
6869
keepForDebugging bool
6970
}
@@ -268,7 +269,7 @@ func (d *DockerContainer) PortFor(cPort int) uint {
268269
return port
269270
}
270271

271-
func (d *DockerContainer) NetworkSettings() dockercontainer.NetworkSettings {
272+
func (d *DockerContainer) NetworkSettings() dockertypes.NetworkSettings {
272273
if d == nil {
273274
panic("Cannot get network settings for a nil *DockerContainer")
274275
}

testing/testing.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"testing"
88
"time"
99

10-
"github.com/docker/docker/api/types/container"
10+
dockertypes "github.com/docker/docker/api/types"
1111
)
1212

1313
type IsReadyFunc func(Instance) bool
@@ -98,6 +98,6 @@ type Instance interface {
9898
Host() string
9999
Port() uint
100100
PortFor(int) uint
101-
NetworkSettings() container.NetworkSettings
101+
NetworkSettings() dockertypes.NetworkSettings
102102
KeepForDebugging()
103103
}

0 commit comments

Comments
 (0)