Skip to content

Commit d7c329f

Browse files
committed
update to master
Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 3a4a8fc commit d7c329f

File tree

7 files changed

+79
-79
lines changed

7 files changed

+79
-79
lines changed

cmd/formatter/container.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,9 @@ func (c *ContainerContext) Publishers() api.PortPublishers {
212212
}
213213

214214
func (c *ContainerContext) Ports() string {
215-
var ports []container.Port
215+
var ports []container.PortSummary
216216
for _, publisher := range c.c.Publishers {
217-
ports = append(ports, container.Port{
217+
ports = append(ports, container.PortSummary{
218218
IP: publisher.URL,
219219
PrivatePort: uint16(publisher.TargetPort),
220220
PublicPort: uint16(publisher.PublishedPort),

go.mod

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module github.com/docker/compose/v2
22

33
go 1.23.12
44

5-
replace github.com/docker/buildx => github.com/thaJeztah/buildx v0.2.1-0.20250805215749-af0516f267b1
5+
replace github.com/docker/buildx => github.com/thaJeztah/buildx v0.2.1-0.20250828153321-62592fbd151b // https://github.com/docker/buildx/pull/3326
66

77
require (
88
github.com/AlecAivazis/survey/v2 v2.3.7
@@ -17,7 +17,7 @@ require (
1717
github.com/davecgh/go-spew v1.1.1
1818
github.com/distribution/reference v0.6.0
1919
github.com/docker/buildx v0.27.0
20-
github.com/docker/cli v28.3.4-0.20250805212551-f1ceb8c55dfa+incompatible
20+
github.com/docker/cli v28.3.4-0.20250828115546-8f25f4fb24b8+incompatible // master
2121
github.com/docker/cli-docs-tool v0.10.0
2222
github.com/docker/docker v28.3.3+incompatible
2323
github.com/docker/go-connections v0.6.0
@@ -32,8 +32,8 @@ require (
3232
github.com/mitchellh/mapstructure v1.5.0
3333
github.com/moby/buildkit v0.24.0-rc1
3434
github.com/moby/go-archive v0.1.0
35-
github.com/moby/moby/api v1.52.0-alpha.1
36-
github.com/moby/moby/client v0.1.0-alpha.0
35+
github.com/moby/moby/api v1.52.0-alpha.1.0.20250828160303-620b93135e44 // master
36+
github.com/moby/moby/client v0.1.0-alpha.0.0.20250828160303-620b93135e44 // master
3737
github.com/moby/patternmatcher v0.6.0
3838
github.com/moby/sys/atomicwriter v0.1.0
3939
github.com/moby/term v0.5.2
@@ -45,7 +45,7 @@ require (
4545
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
4646
github.com/spf13/cobra v1.9.1
4747
github.com/spf13/pflag v1.0.7
48-
github.com/stretchr/testify v1.10.0
48+
github.com/stretchr/testify v1.11.0
4949
github.com/tilt-dev/fsnotify v1.4.8-0.20220602155310-fff9c274a375
5050
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.60.0
5151
go.opentelemetry.io/otel v1.36.0

go.sum

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ github.com/distribution/reference v0.6.0 h1:0IXCQ5g4/QMHHkarYzh5l+u8T3t73zM5Qvfr
126126
github.com/distribution/reference v0.6.0/go.mod h1:BbU0aIcezP1/5jX/8MP0YiH4SdvB5Y4f/wlDRiLyi3E=
127127
github.com/dlclark/regexp2 v1.11.0 h1:G/nrcoOa7ZXlpoa/91N3X7mM3r8eIlMBBJZvsz/mxKI=
128128
github.com/dlclark/regexp2 v1.11.0/go.mod h1:DHkYz0B9wPfa6wondMfaivmHpzrQ3v9q8cnmRbL6yW8=
129-
github.com/docker/cli v28.3.4-0.20250805212551-f1ceb8c55dfa+incompatible h1:tslOU6Gf6aYIY8PwLUADRa5Qqn3/o+4OBcQgWgfmh0Y=
130-
github.com/docker/cli v28.3.4-0.20250805212551-f1ceb8c55dfa+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8=
129+
github.com/docker/cli v28.3.4-0.20250828115546-8f25f4fb24b8+incompatible h1:6try12Z9p9Xy4E2PPGwOMW8cWNXKiYDQbwRqRn1/0Ts=
130+
github.com/docker/cli v28.3.4-0.20250828115546-8f25f4fb24b8+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8=
131131
github.com/docker/cli-docs-tool v0.10.0 h1:bOD6mKynPQgojQi3s2jgcUWGp/Ebqy1SeCr9VfKQLLU=
132132
github.com/docker/cli-docs-tool v0.10.0/go.mod h1:5EM5zPnT2E7yCLERZmrDA234Vwn09fzRHP4aX1qwp1U=
133133
github.com/docker/distribution v2.7.1+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w=
@@ -322,10 +322,10 @@ github.com/moby/go-archive v0.1.0 h1:Kk/5rdW/g+H8NHdJW2gsXyZ7UnzvJNOy6VKJqueWdcQ
322322
github.com/moby/go-archive v0.1.0/go.mod h1:G9B+YoujNohJmrIYFBpSd54GTUB4lt9S+xVQvsJyFuo=
323323
github.com/moby/locker v1.0.1 h1:fOXqR41zeveg4fFODix+1Ch4mj/gT0NE1XJbp/epuBg=
324324
github.com/moby/locker v1.0.1/go.mod h1:S7SDdo5zpBK84bzzVlKr2V0hz+7x9hWbYC/kq7oQppc=
325-
github.com/moby/moby/api v1.52.0-alpha.1 h1:fzxPD0h6l4LmvPd/rySW7T3G45G8eFTo9qEAEp5UZX0=
326-
github.com/moby/moby/api v1.52.0-alpha.1/go.mod h1:MuA35dxT3DVZpImg0ORGCoZtT2dC1jgPjwH9/CQ/afQ=
327-
github.com/moby/moby/client v0.1.0-alpha.0 h1:1Q393KgwO8L3SznKE+xGZJVDdApgcSM0vIhAEff+acc=
328-
github.com/moby/moby/client v0.1.0-alpha.0/go.mod h1:pVMvmGeD4P9tbgBtEHZKW993Qkj4d1Nu6qhiW3GGJ6k=
325+
github.com/moby/moby/api v1.52.0-alpha.1.0.20250828160303-620b93135e44 h1:IRrLHRXRytJYqYWMpPj8wnoLDJxO5g1M/XPwILPhAt0=
326+
github.com/moby/moby/api v1.52.0-alpha.1.0.20250828160303-620b93135e44/go.mod h1:8sBV0soUREiudtow4vqJGOxa4GyHI5vLQmvgKdHq5Ok=
327+
github.com/moby/moby/client v0.1.0-alpha.0.0.20250828160303-620b93135e44 h1:m7Rbw9nK324SJWvYc9ywPb+3X8tVd7NZB1kUs3t10UM=
328+
github.com/moby/moby/client v0.1.0-alpha.0.0.20250828160303-620b93135e44/go.mod h1:7pOYrEHdG7I0dNZEC+yqk/p8ZOxGMR1KgoexzCEDe0w=
329329
github.com/moby/patternmatcher v0.6.0 h1:GmP9lR19aU5GqSSFko+5pRqHi+Ohk1O69aFiKkVGiPk=
330330
github.com/moby/patternmatcher v0.6.0/go.mod h1:hDPoyOpDY7OrrMDLaYoY3hf52gNCR/YOUYxkhApJIxc=
331331
github.com/moby/spdystream v0.5.0 h1:7r0J1Si3QO/kjRitvSLVVFUjxMEb/YLj6S9FF62JBCU=
@@ -470,10 +470,10 @@ github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/
470470
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
471471
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
472472
github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
473-
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
474-
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
475-
github.com/thaJeztah/buildx v0.2.1-0.20250805215749-af0516f267b1 h1:wcsRtpMCqR2oM5CZ00+LqGLEjzxzNCXuezFWpffUaZI=
476-
github.com/thaJeztah/buildx v0.2.1-0.20250805215749-af0516f267b1/go.mod h1:TMmjqOeF1s3daSEOnOJw6yMBtgRpie45QjWEFIRKVO0=
473+
github.com/stretchr/testify v1.11.0 h1:ib4sjIrwZKxE5u/Japgo/7SJV3PvgjGiRNAvTVGqQl8=
474+
github.com/stretchr/testify v1.11.0/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U=
475+
github.com/thaJeztah/buildx v0.2.1-0.20250828153321-62592fbd151b h1:kMabyuMEe4eOSwFLgumIFhSCCZbHneqr0DSgUyKvqAQ=
476+
github.com/thaJeztah/buildx v0.2.1-0.20250828153321-62592fbd151b/go.mod h1:WLAZEqg1R+IoMSfislOz90UVuD8H7/bBTweIm5vKpkM=
477477
github.com/theupdateframework/notary v0.7.0 h1:QyagRZ7wlSpjT5N2qQAh/pN+DVqgekv4DzbAiAiEL3c=
478478
github.com/theupdateframework/notary v0.7.0/go.mod h1:c9DRxcmhHmVLDay4/2fUYdISnHqbFDGRSlXPO0AhYWw=
479479
github.com/tilt-dev/fsnotify v1.4.8-0.20220602155310-fff9c274a375 h1:QB54BJwA6x8QU9nHY3xJSZR2kX9bgpZekRKGkLTmEXA=

pkg/api/dryrunclient.go

Lines changed: 32 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -128,14 +128,12 @@ func (d *DryRunClient) ContainerInspect(ctx context.Context, container string) (
128128
}
129129
}
130130
return containerType.InspectResponse{
131-
ContainerJSONBase: &containerType.ContainerJSONBase{
132-
ID: id,
133-
Name: container,
134-
State: &containerType.State{
135-
Status: "running", // needed for --wait option
136-
Health: &containerType.Health{
137-
Status: containerType.Healthy, // needed for healthcheck control
138-
},
131+
ID: id,
132+
Name: container,
133+
State: &containerType.State{
134+
Status: "running", // needed for --wait option
135+
Health: &containerType.Health{
136+
Status: containerType.Healthy, // needed for healthcheck control
139137
},
140138
},
141139
Mounts: nil,
@@ -246,15 +244,15 @@ func (d *DryRunClient) ImageInspectWithRaw(ctx context.Context, imageName string
246244
return resp, buf.Bytes(), err
247245
}
248246

249-
func (d *DryRunClient) ImagePull(ctx context.Context, ref string, options image.PullOptions) (io.ReadCloser, error) {
247+
func (d *DryRunClient) ImagePull(ctx context.Context, ref string, options client.ImagePullOptions) (io.ReadCloser, error) {
250248
if _, _, err := d.resolver.Resolve(ctx, ref); err != nil {
251249
return nil, err
252250
}
253251
rc := io.NopCloser(strings.NewReader(""))
254252
return rc, nil
255253
}
256254

257-
func (d *DryRunClient) ImagePush(ctx context.Context, ref string, options image.PushOptions) (io.ReadCloser, error) {
255+
func (d *DryRunClient) ImagePush(ctx context.Context, ref string, options client.ImagePushOptions) (io.ReadCloser, error) {
258256
if _, _, err := d.resolver.Resolve(ctx, ref); err != nil {
259257
return nil, err
260258
}
@@ -280,15 +278,15 @@ func (d *DryRunClient) ImagePush(ctx context.Context, ref string, options image.
280278
return rc, nil
281279
}
282280

283-
func (d *DryRunClient) ImageRemove(ctx context.Context, imageName string, options image.RemoveOptions) ([]image.DeleteResponse, error) {
281+
func (d *DryRunClient) ImageRemove(ctx context.Context, imageName string, options client.ImageRemoveOptions) ([]image.DeleteResponse, error) {
284282
return nil, nil
285283
}
286284

287285
func (d *DryRunClient) NetworkConnect(ctx context.Context, networkName, container string, config *network.EndpointSettings) error {
288286
return nil
289287
}
290288

291-
func (d *DryRunClient) NetworkCreate(ctx context.Context, name string, options network.CreateOptions) (network.CreateResponse, error) {
289+
func (d *DryRunClient) NetworkCreate(ctx context.Context, name string, options client.NetworkCreateOptions) (network.CreateResponse, error) {
292290
return network.CreateResponse{
293291
ID: name,
294292
Warning: "",
@@ -342,7 +340,7 @@ func (d *DryRunClient) ContainerExecStart(ctx context.Context, execID string, co
342340

343341
// Functions delegated to original APIClient (not used by Compose or not modifying the Compose stack
344342

345-
func (d *DryRunClient) ConfigList(ctx context.Context, options swarm.ConfigListOptions) ([]swarm.Config, error) {
343+
func (d *DryRunClient) ConfigList(ctx context.Context, options client.ConfigListOptions) ([]swarm.Config, error) {
346344
return d.apiClient.ConfigList(ctx, options)
347345
}
348346

@@ -378,7 +376,7 @@ func (d *DryRunClient) ContainerExecInspect(ctx context.Context, execID string)
378376
return d.apiClient.ContainerExecInspect(ctx, execID)
379377
}
380378

381-
func (d *DryRunClient) ContainerExecResize(ctx context.Context, execID string, options containerType.ResizeOptions) error {
379+
func (d *DryRunClient) ContainerExecResize(ctx context.Context, execID string, options client.ContainerResizeOptions) error {
382380
return d.apiClient.ContainerExecResize(ctx, execID, options)
383381
}
384382

@@ -394,7 +392,7 @@ func (d *DryRunClient) ContainerLogs(ctx context.Context, container string, opti
394392
return d.apiClient.ContainerLogs(ctx, container, options)
395393
}
396394

397-
func (d *DryRunClient) ContainerResize(ctx context.Context, container string, options containerType.ResizeOptions) error {
395+
func (d *DryRunClient) ContainerResize(ctx context.Context, container string, options client.ContainerResizeOptions) error {
398396
return d.apiClient.ContainerResize(ctx, container, options)
399397
}
400398

@@ -438,27 +436,27 @@ func (d *DryRunClient) BuildCancel(ctx context.Context, id string) error {
438436
return d.apiClient.BuildCancel(ctx, id)
439437
}
440438

441-
func (d *DryRunClient) ImageCreate(ctx context.Context, parentReference string, options image.CreateOptions) (io.ReadCloser, error) {
439+
func (d *DryRunClient) ImageCreate(ctx context.Context, parentReference string, options client.ImageCreateOptions) (io.ReadCloser, error) {
442440
return d.apiClient.ImageCreate(ctx, parentReference, options)
443441
}
444442

445443
func (d *DryRunClient) ImageHistory(ctx context.Context, imageName string, options ...client.ImageHistoryOption) ([]image.HistoryResponseItem, error) {
446444
return d.apiClient.ImageHistory(ctx, imageName, options...)
447445
}
448446

449-
func (d *DryRunClient) ImageImport(ctx context.Context, source image.ImportSource, ref string, options image.ImportOptions) (io.ReadCloser, error) {
447+
func (d *DryRunClient) ImageImport(ctx context.Context, source client.ImageImportSource, ref string, options client.ImageImportOptions) (io.ReadCloser, error) {
450448
return d.apiClient.ImageImport(ctx, source, ref, options)
451449
}
452450

453-
func (d *DryRunClient) ImageList(ctx context.Context, options image.ListOptions) ([]image.Summary, error) {
451+
func (d *DryRunClient) ImageList(ctx context.Context, options client.ImageListOptions) ([]image.Summary, error) {
454452
return d.apiClient.ImageList(ctx, options)
455453
}
456454

457455
func (d *DryRunClient) ImageLoad(ctx context.Context, input io.Reader, options ...client.ImageLoadOption) (image.LoadResponse, error) {
458456
return d.apiClient.ImageLoad(ctx, input, options...)
459457
}
460458

461-
func (d *DryRunClient) ImageSearch(ctx context.Context, term string, options registry.SearchOptions) ([]registry.SearchResult, error) {
459+
func (d *DryRunClient) ImageSearch(ctx context.Context, term string, options client.ImageSearchOptions) ([]registry.SearchResult, error) {
462460
return d.apiClient.ImageSearch(ctx, term, options)
463461
}
464462

@@ -478,27 +476,27 @@ func (d *DryRunClient) NodeInspectWithRaw(ctx context.Context, nodeID string) (s
478476
return d.apiClient.NodeInspectWithRaw(ctx, nodeID)
479477
}
480478

481-
func (d *DryRunClient) NodeList(ctx context.Context, options swarm.NodeListOptions) ([]swarm.Node, error) {
479+
func (d *DryRunClient) NodeList(ctx context.Context, options client.NodeListOptions) ([]swarm.Node, error) {
482480
return d.apiClient.NodeList(ctx, options)
483481
}
484482

485-
func (d *DryRunClient) NodeRemove(ctx context.Context, nodeID string, options swarm.NodeRemoveOptions) error {
483+
func (d *DryRunClient) NodeRemove(ctx context.Context, nodeID string, options client.NodeRemoveOptions) error {
486484
return d.apiClient.NodeRemove(ctx, nodeID, options)
487485
}
488486

489487
func (d *DryRunClient) NodeUpdate(ctx context.Context, nodeID string, version swarm.Version, node swarm.NodeSpec) error {
490488
return d.apiClient.NodeUpdate(ctx, nodeID, version, node)
491489
}
492490

493-
func (d *DryRunClient) NetworkInspect(ctx context.Context, networkName string, options network.InspectOptions) (network.Inspect, error) {
491+
func (d *DryRunClient) NetworkInspect(ctx context.Context, networkName string, options client.NetworkInspectOptions) (network.Inspect, error) {
494492
return d.apiClient.NetworkInspect(ctx, networkName, options)
495493
}
496494

497-
func (d *DryRunClient) NetworkInspectWithRaw(ctx context.Context, networkName string, options network.InspectOptions) (network.Inspect, []byte, error) {
495+
func (d *DryRunClient) NetworkInspectWithRaw(ctx context.Context, networkName string, options client.NetworkInspectOptions) (network.Inspect, []byte, error) {
498496
return d.apiClient.NetworkInspectWithRaw(ctx, networkName, options)
499497
}
500498

501-
func (d *DryRunClient) NetworkList(ctx context.Context, options network.ListOptions) ([]network.Inspect, error) {
499+
func (d *DryRunClient) NetworkList(ctx context.Context, options client.NetworkListOptions) ([]network.Inspect, error) {
502500
return d.apiClient.NetworkList(ctx, options)
503501
}
504502

@@ -546,23 +544,23 @@ func (d *DryRunClient) PluginCreate(ctx context.Context, createContext io.Reader
546544
return d.apiClient.PluginCreate(ctx, createContext, options)
547545
}
548546

549-
func (d *DryRunClient) ServiceCreate(ctx context.Context, service swarm.ServiceSpec, options swarm.ServiceCreateOptions) (swarm.ServiceCreateResponse, error) {
547+
func (d *DryRunClient) ServiceCreate(ctx context.Context, service swarm.ServiceSpec, options client.ServiceCreateOptions) (swarm.ServiceCreateResponse, error) {
550548
return d.apiClient.ServiceCreate(ctx, service, options)
551549
}
552550

553-
func (d *DryRunClient) ServiceInspectWithRaw(ctx context.Context, serviceID string, options swarm.ServiceInspectOptions) (swarm.Service, []byte, error) {
551+
func (d *DryRunClient) ServiceInspectWithRaw(ctx context.Context, serviceID string, options client.ServiceInspectOptions) (swarm.Service, []byte, error) {
554552
return d.apiClient.ServiceInspectWithRaw(ctx, serviceID, options)
555553
}
556554

557-
func (d *DryRunClient) ServiceList(ctx context.Context, options swarm.ServiceListOptions) ([]swarm.Service, error) {
555+
func (d *DryRunClient) ServiceList(ctx context.Context, options client.ServiceListOptions) ([]swarm.Service, error) {
558556
return d.apiClient.ServiceList(ctx, options)
559557
}
560558

561559
func (d *DryRunClient) ServiceRemove(ctx context.Context, serviceID string) error {
562560
return d.apiClient.ServiceRemove(ctx, serviceID)
563561
}
564562

565-
func (d *DryRunClient) ServiceUpdate(ctx context.Context, serviceID string, version swarm.Version, service swarm.ServiceSpec, options swarm.ServiceUpdateOptions) (swarm.ServiceUpdateResponse, error) {
563+
func (d *DryRunClient) ServiceUpdate(ctx context.Context, serviceID string, version swarm.Version, service swarm.ServiceSpec, options client.ServiceUpdateOptions) (swarm.ServiceUpdateResponse, error) {
566564
return d.apiClient.ServiceUpdate(ctx, serviceID, version, service, options)
567565
}
568566

@@ -578,7 +576,7 @@ func (d *DryRunClient) TaskInspectWithRaw(ctx context.Context, taskID string) (s
578576
return d.apiClient.TaskInspectWithRaw(ctx, taskID)
579577
}
580578

581-
func (d *DryRunClient) TaskList(ctx context.Context, options swarm.TaskListOptions) ([]swarm.Task, error) {
579+
func (d *DryRunClient) TaskList(ctx context.Context, options client.TaskListOptions) ([]swarm.Task, error) {
582580
return d.apiClient.TaskList(ctx, options)
583581
}
584582

@@ -606,11 +604,11 @@ func (d *DryRunClient) SwarmInspect(ctx context.Context) (swarm.Swarm, error) {
606604
return d.apiClient.SwarmInspect(ctx)
607605
}
608606

609-
func (d *DryRunClient) SwarmUpdate(ctx context.Context, version swarm.Version, swarmSpec swarm.Spec, flags swarm.UpdateFlags) error {
607+
func (d *DryRunClient) SwarmUpdate(ctx context.Context, version swarm.Version, swarmSpec swarm.Spec, flags client.SwarmUpdateFlags) error {
610608
return d.apiClient.SwarmUpdate(ctx, version, swarmSpec, flags)
611609
}
612610

613-
func (d *DryRunClient) SecretList(ctx context.Context, options swarm.SecretListOptions) ([]swarm.Secret, error) {
611+
func (d *DryRunClient) SecretList(ctx context.Context, options client.SecretListOptions) ([]swarm.Secret, error) {
614612
return d.apiClient.SecretList(ctx, options)
615613
}
616614

@@ -630,7 +628,7 @@ func (d *DryRunClient) SecretUpdate(ctx context.Context, id string, version swar
630628
return d.apiClient.SecretUpdate(ctx, id, version, secret)
631629
}
632630

633-
func (d *DryRunClient) Events(ctx context.Context, options events.ListOptions) (<-chan events.Message, <-chan error) {
631+
func (d *DryRunClient) Events(ctx context.Context, options client.EventsListOptions) (<-chan events.Message, <-chan error) {
634632
return d.apiClient.Events(ctx, options)
635633
}
636634

@@ -642,7 +640,7 @@ func (d *DryRunClient) RegistryLogin(ctx context.Context, auth registry.AuthConf
642640
return d.apiClient.RegistryLogin(ctx, auth)
643641
}
644642

645-
func (d *DryRunClient) DiskUsage(ctx context.Context, options system.DiskUsageOptions) (system.DiskUsage, error) {
643+
func (d *DryRunClient) DiskUsage(ctx context.Context, options client.DiskUsageOptions) (system.DiskUsage, error) {
646644
return d.apiClient.DiskUsage(ctx, options)
647645
}
648646

@@ -658,7 +656,7 @@ func (d *DryRunClient) VolumeInspectWithRaw(ctx context.Context, volumeID string
658656
return d.apiClient.VolumeInspectWithRaw(ctx, volumeID)
659657
}
660658

661-
func (d *DryRunClient) VolumeList(ctx context.Context, opts volume.ListOptions) (volume.ListResponse, error) {
659+
func (d *DryRunClient) VolumeList(ctx context.Context, opts client.VolumeListOptions) (volume.ListResponse, error) {
662660
return d.apiClient.VolumeList(ctx, opts)
663661
}
664662

pkg/bridge/convert.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ import (
3636
"github.com/moby/moby/api/types/container"
3737
"github.com/moby/moby/api/types/image"
3838
"github.com/moby/moby/api/types/network"
39+
"github.com/moby/moby/client"
3940
"github.com/moby/moby/client/pkg/jsonmessage"
4041
"gopkg.in/yaml.v3"
4142
)
@@ -206,7 +207,7 @@ func inspectWithPull(ctx context.Context, dockerCli command.Cli, imageName strin
206207
inspect, err := dockerCli.Client().ImageInspect(ctx, imageName)
207208
if errdefs.IsNotFound(err) {
208209
var stream io.ReadCloser
209-
stream, err = dockerCli.Client().ImagePull(ctx, imageName, image.PullOptions{})
210+
stream, err = dockerCli.Client().ImagePull(ctx, imageName, client.ImagePullOptions{})
210211
if err != nil {
211212
return image.InspectResponse{}, err
212213
}

pkg/bridge/transformers.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import (
2828
"github.com/moby/moby/api/types/filters"
2929
"github.com/moby/moby/api/types/image"
3030
"github.com/moby/moby/api/types/network"
31+
"github.com/moby/moby/client"
3132
)
3233

3334
const (
@@ -112,7 +113,7 @@ COPY templates /templates
112113

113114
func ListTransformers(ctx context.Context, dockerCli command.Cli) ([]image.Summary, error) {
114115
api := dockerCli.Client()
115-
return api.ImageList(ctx, image.ListOptions{
116+
return api.ImageList(ctx, client.ImageListOptions{
116117
Filters: filters.NewArgs(
117118
filters.Arg("label", fmt.Sprintf("%s=%s", TransformerLabel, "transformation")),
118119
),

0 commit comments

Comments
 (0)