Codebase list docker-compose / 5a2b7b8
use compose service methods when exist instead of directly service.dockerCli Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com> Guillaume Lours authored 1 year, 4 months ago Nicolas De loof committed 1 year, 4 months ago
3 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
8585 })
8686 })
8787
88 inspect, err := s.dockerCli.Client().ContainerInspect(ctx, container.ID)
88 inspect, err := s.apiClient().ContainerInspect(ctx, container.ID)
8989 if err != nil {
9090 return err
9191 }
234234 Text: "Pulled",
235235 })
236236
237 inspected, _, err := s.dockerCli.Client().ImageInspectWithRaw(ctx, service.Image)
237 inspected, _, err := s.apiClient().ImageInspectWithRaw(ctx, service.Image)
238238 if err != nil {
239239 return "", err
240240 }
5555
5656 applyRunOptions(project, &service, opts)
5757
58 if err := s.dockerCli.In().CheckTty(opts.Interactive, service.Tty); err != nil {
58 if err := s.stdin().CheckTty(opts.Interactive, service.Tty); err != nil {
5959 return "", err
6060 }
6161