Skip to content

Commit 158324a

Browse files
committed
update to master
Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 70290ad commit 158324a

28 files changed

+160
-168
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: 4 additions & 4 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.28.0-rc1
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.4-0.20250828134822-02b4a1a3decc+incompatible // 28.x branch (v28.4.0-dev)
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

go.sum

Lines changed: 8 additions & 8 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=
@@ -472,8 +472,8 @@ github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO
472472
github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
473473
github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U=
474474
github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U=
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=
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: 33 additions & 35 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: containerType.StateRunning, // 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: containerType.StateRunning, // needed for --wait option
135+
Health: &containerType.Health{
136+
Status: containerType.Healthy, // needed for healthcheck control
139137
},
140138
},
141139
Mounts: nil,
@@ -245,15 +243,15 @@ func (d *DryRunClient) ImageInspectWithRaw(ctx context.Context, imageName string
245243
return resp, buf.Bytes(), err
246244
}
247245

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

256-
func (d *DryRunClient) ImagePush(ctx context.Context, ref string, options image.PushOptions) (io.ReadCloser, error) {
254+
func (d *DryRunClient) ImagePush(ctx context.Context, ref string, options client.ImagePushOptions) (io.ReadCloser, error) {
257255
if _, _, err := d.resolver.Resolve(ctx, ref); err != nil {
258256
return nil, err
259257
}
@@ -277,15 +275,15 @@ func (d *DryRunClient) ImagePush(ctx context.Context, ref string, options image.
277275
return rc, nil
278276
}
279277

280-
func (d *DryRunClient) ImageRemove(ctx context.Context, imageName string, options image.RemoveOptions) ([]image.DeleteResponse, error) {
278+
func (d *DryRunClient) ImageRemove(ctx context.Context, imageName string, options client.ImageRemoveOptions) ([]image.DeleteResponse, error) {
281279
return nil, nil
282280
}
283281

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

288-
func (d *DryRunClient) NetworkCreate(ctx context.Context, name string, options network.CreateOptions) (network.CreateResponse, error) {
286+
func (d *DryRunClient) NetworkCreate(ctx context.Context, name string, options client.NetworkCreateOptions) (network.CreateResponse, error) {
289287
return network.CreateResponse{
290288
ID: name,
291289
Warning: "",
@@ -339,7 +337,7 @@ func (d *DryRunClient) ContainerExecStart(ctx context.Context, execID string, co
339337

340338
// Functions delegated to original APIClient (not used by Compose or not modifying the Compose stack
341339

342-
func (d *DryRunClient) ConfigList(ctx context.Context, options swarm.ConfigListOptions) ([]swarm.Config, error) {
340+
func (d *DryRunClient) ConfigList(ctx context.Context, options client.ConfigListOptions) ([]swarm.Config, error) {
343341
return d.apiClient.ConfigList(ctx, options)
344342
}
345343

@@ -375,7 +373,7 @@ func (d *DryRunClient) ContainerExecInspect(ctx context.Context, execID string)
375373
return d.apiClient.ContainerExecInspect(ctx, execID)
376374
}
377375

378-
func (d *DryRunClient) ContainerExecResize(ctx context.Context, execID string, options containerType.ResizeOptions) error {
376+
func (d *DryRunClient) ContainerExecResize(ctx context.Context, execID string, options client.ContainerResizeOptions) error {
379377
return d.apiClient.ContainerExecResize(ctx, execID, options)
380378
}
381379

@@ -391,7 +389,7 @@ func (d *DryRunClient) ContainerLogs(ctx context.Context, container string, opti
391389
return d.apiClient.ContainerLogs(ctx, container, options)
392390
}
393391

394-
func (d *DryRunClient) ContainerResize(ctx context.Context, container string, options containerType.ResizeOptions) error {
392+
func (d *DryRunClient) ContainerResize(ctx context.Context, container string, options client.ContainerResizeOptions) error {
395393
return d.apiClient.ContainerResize(ctx, container, options)
396394
}
397395

@@ -435,27 +433,27 @@ func (d *DryRunClient) BuildCancel(ctx context.Context, id string) error {
435433
return d.apiClient.BuildCancel(ctx, id)
436434
}
437435

438-
func (d *DryRunClient) ImageCreate(ctx context.Context, parentReference string, options image.CreateOptions) (io.ReadCloser, error) {
436+
func (d *DryRunClient) ImageCreate(ctx context.Context, parentReference string, options client.ImageCreateOptions) (io.ReadCloser, error) {
439437
return d.apiClient.ImageCreate(ctx, parentReference, options)
440438
}
441439

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

446-
func (d *DryRunClient) ImageImport(ctx context.Context, source image.ImportSource, ref string, options image.ImportOptions) (io.ReadCloser, error) {
444+
func (d *DryRunClient) ImageImport(ctx context.Context, source client.ImageImportSource, ref string, options client.ImageImportOptions) (io.ReadCloser, error) {
447445
return d.apiClient.ImageImport(ctx, source, ref, options)
448446
}
449447

450-
func (d *DryRunClient) ImageList(ctx context.Context, options image.ListOptions) ([]image.Summary, error) {
448+
func (d *DryRunClient) ImageList(ctx context.Context, options client.ImageListOptions) ([]image.Summary, error) {
451449
return d.apiClient.ImageList(ctx, options)
452450
}
453451

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

458-
func (d *DryRunClient) ImageSearch(ctx context.Context, term string, options registry.SearchOptions) ([]registry.SearchResult, error) {
456+
func (d *DryRunClient) ImageSearch(ctx context.Context, term string, options client.ImageSearchOptions) ([]registry.SearchResult, error) {
459457
return d.apiClient.ImageSearch(ctx, term, options)
460458
}
461459

@@ -475,27 +473,27 @@ func (d *DryRunClient) NodeInspectWithRaw(ctx context.Context, nodeID string) (s
475473
return d.apiClient.NodeInspectWithRaw(ctx, nodeID)
476474
}
477475

478-
func (d *DryRunClient) NodeList(ctx context.Context, options swarm.NodeListOptions) ([]swarm.Node, error) {
476+
func (d *DryRunClient) NodeList(ctx context.Context, options client.NodeListOptions) ([]swarm.Node, error) {
479477
return d.apiClient.NodeList(ctx, options)
480478
}
481479

482-
func (d *DryRunClient) NodeRemove(ctx context.Context, nodeID string, options swarm.NodeRemoveOptions) error {
480+
func (d *DryRunClient) NodeRemove(ctx context.Context, nodeID string, options client.NodeRemoveOptions) error {
483481
return d.apiClient.NodeRemove(ctx, nodeID, options)
484482
}
485483

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

490-
func (d *DryRunClient) NetworkInspect(ctx context.Context, networkName string, options network.InspectOptions) (network.Inspect, error) {
488+
func (d *DryRunClient) NetworkInspect(ctx context.Context, networkName string, options client.NetworkInspectOptions) (network.Inspect, error) {
491489
return d.apiClient.NetworkInspect(ctx, networkName, options)
492490
}
493491

494-
func (d *DryRunClient) NetworkInspectWithRaw(ctx context.Context, networkName string, options network.InspectOptions) (network.Inspect, []byte, error) {
492+
func (d *DryRunClient) NetworkInspectWithRaw(ctx context.Context, networkName string, options client.NetworkInspectOptions) (network.Inspect, []byte, error) {
495493
return d.apiClient.NetworkInspectWithRaw(ctx, networkName, options)
496494
}
497495

498-
func (d *DryRunClient) NetworkList(ctx context.Context, options network.ListOptions) ([]network.Inspect, error) {
496+
func (d *DryRunClient) NetworkList(ctx context.Context, options client.NetworkListOptions) ([]network.Inspect, error) {
499497
return d.apiClient.NetworkList(ctx, options)
500498
}
501499

@@ -543,24 +541,24 @@ func (d *DryRunClient) PluginCreate(ctx context.Context, createContext io.Reader
543541
return d.apiClient.PluginCreate(ctx, createContext, options)
544542
}
545543

546-
func (d *DryRunClient) ServiceCreate(ctx context.Context, service swarm.ServiceSpec, options swarm.ServiceCreateOptions) (swarm.ServiceCreateResponse, error) {
544+
func (d *DryRunClient) ServiceCreate(ctx context.Context, service swarm.ServiceSpec, options client.ServiceCreateOptions) (swarm.ServiceCreateResponse, error) {
547545
return d.apiClient.ServiceCreate(ctx, service, options)
548546
}
549547

550-
func (d *DryRunClient) ServiceInspectWithRaw(ctx context.Context, serviceID string, options swarm.ServiceInspectOptions) (swarm.Service, []byte, error) {
548+
func (d *DryRunClient) ServiceInspectWithRaw(ctx context.Context, serviceID string, options client.ServiceInspectOptions) (swarm.Service, []byte, error) {
551549
return d.apiClient.ServiceInspectWithRaw(ctx, serviceID, options)
552550
}
553551

554-
func (d *DryRunClient) ServiceList(ctx context.Context, options swarm.ServiceListOptions) ([]swarm.Service, error) {
552+
func (d *DryRunClient) ServiceList(ctx context.Context, options client.ServiceListOptions) ([]swarm.Service, error) {
555553
return d.apiClient.ServiceList(ctx, options)
556554
}
557555

558556
func (d *DryRunClient) ServiceRemove(ctx context.Context, serviceID string) error {
559557
return d.apiClient.ServiceRemove(ctx, serviceID)
560558
}
561559

562-
func (d *DryRunClient) ServiceUpdate(ctx context.Context, serviceID string, version swarm.Version, service swarm.ServiceSpec, options swarm.ServiceUpdateOptions) (swarm.ServiceUpdateResponse, error) {
563-
return d.apiClient.ServiceUpdate(ctx, serviceID, version, service, options)
560+
func (d *DryRunClient) ServiceUpdate(ctx context.Context, serviceID string, version swarm.Version, spec swarm.ServiceSpec, options client.ServiceUpdateOptions) (swarm.ServiceUpdateResponse, error) {
561+
return d.apiClient.ServiceUpdate(ctx, serviceID, version, spec, options)
564562
}
565563

566564
func (d *DryRunClient) ServiceLogs(ctx context.Context, serviceID string, options containerType.LogsOptions) (io.ReadCloser, error) {
@@ -575,7 +573,7 @@ func (d *DryRunClient) TaskInspectWithRaw(ctx context.Context, taskID string) (s
575573
return d.apiClient.TaskInspectWithRaw(ctx, taskID)
576574
}
577575

578-
func (d *DryRunClient) TaskList(ctx context.Context, options swarm.TaskListOptions) ([]swarm.Task, error) {
576+
func (d *DryRunClient) TaskList(ctx context.Context, options client.TaskListOptions) ([]swarm.Task, error) {
579577
return d.apiClient.TaskList(ctx, options)
580578
}
581579

@@ -603,11 +601,11 @@ func (d *DryRunClient) SwarmInspect(ctx context.Context) (swarm.Swarm, error) {
603601
return d.apiClient.SwarmInspect(ctx)
604602
}
605603

606-
func (d *DryRunClient) SwarmUpdate(ctx context.Context, version swarm.Version, swarmSpec swarm.Spec, flags swarm.UpdateFlags) error {
604+
func (d *DryRunClient) SwarmUpdate(ctx context.Context, version swarm.Version, swarmSpec swarm.Spec, flags client.SwarmUpdateFlags) error {
607605
return d.apiClient.SwarmUpdate(ctx, version, swarmSpec, flags)
608606
}
609607

610-
func (d *DryRunClient) SecretList(ctx context.Context, options swarm.SecretListOptions) ([]swarm.Secret, error) {
608+
func (d *DryRunClient) SecretList(ctx context.Context, options client.SecretListOptions) ([]swarm.Secret, error) {
611609
return d.apiClient.SecretList(ctx, options)
612610
}
613611

@@ -627,7 +625,7 @@ func (d *DryRunClient) SecretUpdate(ctx context.Context, id string, version swar
627625
return d.apiClient.SecretUpdate(ctx, id, version, secret)
628626
}
629627

630-
func (d *DryRunClient) Events(ctx context.Context, options events.ListOptions) (<-chan events.Message, <-chan error) {
628+
func (d *DryRunClient) Events(ctx context.Context, options client.EventsListOptions) (<-chan events.Message, <-chan error) {
631629
return d.apiClient.Events(ctx, options)
632630
}
633631

@@ -639,7 +637,7 @@ func (d *DryRunClient) RegistryLogin(ctx context.Context, auth registry.AuthConf
639637
return d.apiClient.RegistryLogin(ctx, auth)
640638
}
641639

642-
func (d *DryRunClient) DiskUsage(ctx context.Context, options system.DiskUsageOptions) (system.DiskUsage, error) {
640+
func (d *DryRunClient) DiskUsage(ctx context.Context, options client.DiskUsageOptions) (system.DiskUsage, error) {
643641
return d.apiClient.DiskUsage(ctx, options)
644642
}
645643

@@ -655,7 +653,7 @@ func (d *DryRunClient) VolumeInspectWithRaw(ctx context.Context, volumeID string
655653
return d.apiClient.VolumeInspectWithRaw(ctx, volumeID)
656654
}
657655

658-
func (d *DryRunClient) VolumeList(ctx context.Context, opts volume.ListOptions) (volume.ListResponse, error) {
656+
func (d *DryRunClient) VolumeList(ctx context.Context, opts client.VolumeListOptions) (volume.ListResponse, error) {
659657
return d.apiClient.VolumeList(ctx, opts)
660658
}
661659

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)