diff --git a/pkg/compose/attach.go b/pkg/compose/attach.go index c339f3f6b..4f4e766c7 100644 --- a/pkg/compose/attach.go +++ b/pkg/compose/attach.go @@ -86,7 +86,7 @@ func (s *composeService) attachContainer(ctx context.Context, container moby.Con }) }) - inspect, err := s.dockerCli.Client().ContainerInspect(ctx, container.ID) + inspect, err := s.apiClient().ContainerInspect(ctx, container.ID) if err != nil { return err } diff --git a/pkg/compose/pull.go b/pkg/compose/pull.go index a2b1663c0..05057c65c 100644 --- a/pkg/compose/pull.go +++ b/pkg/compose/pull.go @@ -235,7 +235,7 @@ func (s *composeService) pullServiceImage(ctx context.Context, service types.Ser Text: "Pulled", }) - inspected, _, err := s.dockerCli.Client().ImageInspectWithRaw(ctx, service.Image) + inspected, _, err := s.apiClient().ImageInspectWithRaw(ctx, service.Image) if err != nil { return "", err } diff --git a/pkg/compose/run.go b/pkg/compose/run.go index 0e6329f70..bd16b435b 100644 --- a/pkg/compose/run.go +++ b/pkg/compose/run.go @@ -56,7 +56,7 @@ func (s *composeService) prepareRun(ctx context.Context, project *types.Project, applyRunOptions(project, &service, opts) - if err := s.dockerCli.In().CheckTty(opts.Interactive, service.Tty); err != nil { + if err := s.stdin().CheckTty(opts.Interactive, service.Tty); err != nil { return "", err }