diff --git a/go.mod b/go.mod index e3140788..8dd14d88 100644 --- a/go.mod +++ b/go.mod @@ -11,7 +11,7 @@ require ( github.com/btcsuite/btcd/chaincfg/chainhash v1.0.2 github.com/caddyserver/certmagic v0.11.2 github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 - github.com/docker/docker v20.10.27+incompatible + github.com/docker/docker v24.0.9+incompatible github.com/docker/go-connections v0.4.0 github.com/golang-migrate/migrate/v4 v4.16.1 github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 diff --git a/go.sum b/go.sum index 01e5bf8e..827dbcd6 100644 --- a/go.sum +++ b/go.sum @@ -330,8 +330,8 @@ github.com/dnsimple/dnsimple-go v0.60.0/go.mod h1:O5TJ0/U6r7AfT8niYNlmohpLbCSG+c github.com/docker/distribution v2.8.2+incompatible h1:T3de5rq0dB1j30rp0sA2rER+m322EBzniBPB6ZIzuh8= github.com/docker/distribution v2.8.2+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w= github.com/docker/docker v1.6.2/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= -github.com/docker/docker v20.10.27+incompatible h1:Id/ZooynV4ZlD6xX20RCd3SR0Ikn7r4QZDa2ECK2TgA= -github.com/docker/docker v20.10.27+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= +github.com/docker/docker v24.0.9+incompatible h1:HPGzNmwfLZWdxHqK9/II92pyi1EpYKsAqcl4G0Of9v0= +github.com/docker/docker v24.0.9+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= github.com/docker/go-connections v0.4.0 h1:El9xVISelRB7BuFusrZozjnkIM5YnzCViNKohAFqRJQ= github.com/docker/go-connections v0.4.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec= github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4= diff --git a/itest/postgres.go b/itest/postgres.go index aa50f424..32ed1909 100644 --- a/itest/postgres.go +++ b/itest/postgres.go @@ -81,7 +81,7 @@ HealthCheck: for { inspect, err := c.cli.ContainerInspect(ctx, c.id) if err != nil { - c.cli.ContainerStop(ctx, c.id, nil) + c.cli.ContainerStop(ctx, c.id, container.StopOptions{}) c.cli.Close() return fmt.Errorf("failed to inspect container '%s' during healthcheck: %w", c.id, err) } @@ -89,7 +89,7 @@ HealthCheck: status := inspect.State.Health.Status switch status { case "unhealthy": - c.cli.ContainerStop(ctx, c.id, nil) + c.cli.ContainerStop(ctx, c.id, container.StopOptions{}) c.cli.Close() return fmt.Errorf("container '%s' unhealthy", c.id) case "healthy": @@ -191,7 +191,7 @@ func (c *PostgresContainer) Stop(ctx context.Context) error { } defer c.cli.Close() - err := c.cli.ContainerStop(ctx, c.id, nil) + err := c.cli.ContainerStop(ctx, c.id, container.StopOptions{}) c.isStarted = false return err }