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

Method ContainerRename

cli/command/container/client_test.go:221–227  ·  view source on GitHub ↗
(ctx context.Context, oldName string, options client.ContainerRenameOptions)

Source from the content-addressed store, hash-verified

219}
220
221func (f *fakeClient) ContainerRename(ctx context.Context, oldName string, options client.ContainerRenameOptions) (client.ContainerRenameResult, error) {
222 if f.containerRenameFunc != nil {
223 return client.ContainerRenameResult{}, f.containerRenameFunc(ctx, oldName, options.NewName)
224 }
225
226 return client.ContainerRenameResult{}, nil
227}
228
229func (f *fakeClient) ContainerCommit(ctx context.Context, containerID string, options client.ContainerCommitOptions) (client.ContainerCommitResult, error) {
230 if f.containerCommitFunc != nil {

Callers 1

newRenameCommandFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected