MCPcopy Index your code
hub / github.com/docker/cli / ContainerRestart

Method ContainerRestart

cli/command/container/client_test.go:192–197  ·  view source on GitHub ↗
(ctx context.Context, containerID string, options client.ContainerRestartOptions)

Source from the content-addressed store, hash-verified

190}
191
192func (f *fakeClient) ContainerRestart(ctx context.Context, containerID string, options client.ContainerRestartOptions) (client.ContainerRestartResult, error) {
193 if f.containerRestartFunc != nil {
194 return f.containerRestartFunc(ctx, containerID, options)
195 }
196 return client.ContainerRestartResult{}, nil
197}
198
199func (f *fakeClient) ContainerStop(ctx context.Context, containerID string, options client.ContainerStopOptions) (client.ContainerStopResult, error) {
200 if f.containerStopFunc != nil {

Callers 1

runRestartFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected