MCPcopy
hub / github.com/docker/compose / ContainerAttach

Method ContainerAttach

pkg/dryrun/dryrunclient.go:92–94  ·  view source on GitHub ↗

All methods and functions which need to be overridden for dry run.

(ctx context.Context, container string, options client.ContainerAttachOptions)

Source from the content-addressed store, hash-verified

90// All methods and functions which need to be overridden for dry run.
91
92func (d *DryRunClient) ContainerAttach(ctx context.Context, container string, options client.ContainerAttachOptions) (client.ContainerAttachResult, error) {
93 return client.ContainerAttachResult{}, errors.New("interactive run is not supported in dry-run mode")
94}
95
96func (d *DryRunClient) ContainerCreate(ctx context.Context, options client.ContainerCreateOptions) (client.ContainerCreateResult, error) {
97 d.containers = append(d.containers, containerType.Summary{

Callers 1

getContainerStreamsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected