MCPcopy Create free account
hub / github.com/docker/compose / ContainersForService

Method ContainersForService

pkg/compose/watch.go:452–458  ·  view source on GitHub ↗
(ctx context.Context, projectName string, serviceName string)

Source from the content-addressed store, hash-verified

450}
451
452func (t tarDockerClient) ContainersForService(ctx context.Context, projectName string, serviceName string) ([]container.Summary, error) {
453 containers, err := t.s.getContainers(ctx, projectName, oneOffExclude, true, serviceName)
454 if err != nil {
455 return nil, err
456 }
457 return containers, nil
458}
459
460func (t tarDockerClient) Exec(ctx context.Context, containerID string, cmd []string, in io.Reader) error {
461 execCreateResp, err := t.s.apiClient().ExecCreate(ctx, containerID, client.ExecCreateOptions{

Callers

nothing calls this directly

Calls 1

getContainersMethod · 0.80

Tested by

no test coverage detected