replace direct uses of nat types for api/types/container aliases

Follow-up to 494677f93f, which added
the aliases, but did not yet replace our own use of the nat types.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2025-07-31 02:19:00 +02:00
parent 0a5fb23b35
commit d58dc493fe
33 changed files with 206 additions and 237 deletions

View File

@@ -22,7 +22,6 @@ import (
"github.com/docker/docker/integration-cli/cli/build"
"github.com/docker/docker/testutil"
"github.com/docker/docker/testutil/request"
"github.com/docker/go-connections/nat"
"github.com/moby/moby/api/types/container"
"github.com/moby/moby/api/types/mount"
"github.com/moby/moby/api/types/network"
@@ -505,8 +504,8 @@ func (s *DockerAPISuite) TestContainerAPIBadPort(c *testing.T) {
}
hostConfig := container.HostConfig{
PortBindings: nat.PortMap{
"8080/tcp": []nat.PortBinding{
PortBindings: container.PortMap{
"8080/tcp": []container.PortBinding{
{
HostIP: "",
HostPort: "aa80",