MCPcopy Create free account
hub / github.com/OpenAtomFoundation/SmartIDE / Stop

Method Stop

cli/pkg/common/docker.go:157–161  ·  view source on GitHub ↗
(ctx context.Context, container string)

Source from the content-addressed store, hash-verified

155}
156
157func (d Docker) Stop(ctx context.Context, container string) error {
158 timeout := time.Second * 5
159 err := d.client.ContainerStop(ctx, container, &timeout)
160 return err
161}
162
163func (d Docker) Rm(ctx context.Context, container string, force bool) error {
164 err := d.client.ContainerRemove(ctx, container, types.ContainerRemoveOptions{Force: force})

Callers 1

RestartMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected