Docker SDK v28 pour resoudre les conflits transitifs
This commit is contained in:
@@ -9,9 +9,9 @@ import (
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
"github.com/docker/docker/api/types"
|
||||
"github.com/docker/docker/api/types/container"
|
||||
"github.com/docker/docker/api/types/filters"
|
||||
"github.com/docker/docker/api/types/image"
|
||||
"github.com/docker/docker/api/types/network"
|
||||
"github.com/docker/docker/client"
|
||||
)
|
||||
@@ -125,7 +125,7 @@ type runSpec struct {
|
||||
func (d *DockerClient) runContainer(ctx context.Context, s runSpec) error {
|
||||
// Pull silencieux si image absente localement. Ignore les erreurs (l'image
|
||||
// peut exister localement sans etre atteignable au registre, ex: builds dev).
|
||||
if reader, err := d.cli.ImagePull(ctx, s.Image, types.ImagePullOptions{}); err == nil {
|
||||
if reader, err := d.cli.ImagePull(ctx, s.Image, image.PullOptions{}); err == nil {
|
||||
// Drain le body, sinon le pull n'est pas termine quand on continue.
|
||||
_, _ = io.Copy(io.Discard, reader)
|
||||
reader.Close()
|
||||
|
||||
@@ -3,9 +3,6 @@ module github.com/loremind/demo-orchestrator
|
||||
go 1.23
|
||||
|
||||
require (
|
||||
github.com/docker/docker v27.3.1+incompatible
|
||||
// docker/docker v27.3.1 appelle sockets.DialPipe qui n'existe plus dans
|
||||
// go-connections >= 0.6.0. Pin a 0.5.0 pour eviter le build break.
|
||||
github.com/docker/go-connections v0.5.0
|
||||
github.com/docker/docker v28.0.4+incompatible
|
||||
github.com/google/uuid v1.6.0
|
||||
)
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
github.com/docker/docker v27.3.1+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk=
|
||||
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
|
||||
Reference in New Issue
Block a user