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

Method Restart

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

Source from the content-addressed store, hash-verified

200}
201
202func (d Docker) Restart(ctx context.Context, container string) error {
203 _ = d.Stop(ctx, container)
204 return d.Start(ctx, container)
205}
206
207func (d Docker) IsRun(ctx context.Context, container string) bool {
208 stat, err := d.client.ContainerInspect(ctx, container)

Callers

nothing calls this directly

Calls 2

StopMethod · 0.95
StartMethod · 0.95

Tested by

no test coverage detected