(ctx context.Context, container containerType.Summary, listener api.ContainerEventListener)
| 64 | } |
| 65 | |
| 66 | func (s *composeService) attachContainer(ctx context.Context, container containerType.Summary, listener api.ContainerEventListener) error { |
| 67 | service := container.Labels[api.ServiceLabel] |
| 68 | name := getContainerNameWithoutProject(container) |
| 69 | return s.doAttachContainer(ctx, service, container.ID, name, listener) |
| 70 | } |
| 71 | |
| 72 | func (s *composeService) doAttachContainer(ctx context.Context, service, id, name string, listener api.ContainerEventListener) error { |
| 73 | inspect, err := s.apiClient().ContainerInspect(ctx, id, client.ContainerInspectOptions{}) |
no test coverage detected