diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-01-15 10:48:27 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-15 10:48:27 -0500 |
commit | 7d3a628c6ba79efa4b0daaff904b6c2b157dcfc5 (patch) | |
tree | cb645c61932938bccaed02c9ba73cd4353229d8e /pkg/domain/infra/tunnel/containers.go | |
parent | 5a166b297339d547d89fbf14248c3aff129eb960 (diff) | |
parent | 0688f080b8eeda35cce4f7d217fb2f4635c162c3 (diff) | |
download | podman-7d3a628c6ba79efa4b0daaff904b6c2b157dcfc5.tar.gz podman-7d3a628c6ba79efa4b0daaff904b6c2b157dcfc5.tar.bz2 podman-7d3a628c6ba79efa4b0daaff904b6c2b157dcfc5.zip |
Merge pull request #8982 from Luap99/container-rename-bindings
Container rename bindings
Diffstat (limited to 'pkg/domain/infra/tunnel/containers.go')
-rw-r--r-- | pkg/domain/infra/tunnel/containers.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/domain/infra/tunnel/containers.go b/pkg/domain/infra/tunnel/containers.go index 8aab4a9cd..4ee623703 100644 --- a/pkg/domain/infra/tunnel/containers.go +++ b/pkg/domain/infra/tunnel/containers.go @@ -823,5 +823,5 @@ func (ic *ContainerEngine) ShouldRestart(_ context.Context, id string) (bool, er // ContainerRename renames the given container. func (ic *ContainerEngine) ContainerRename(ctx context.Context, nameOrID string, opts entities.ContainerRenameOptions) error { - return errors.Errorf("NOT YET IMPLEMENTED") + return containers.Rename(ic.ClientCtx, nameOrID, new(containers.RenameOptions).WithName(opts.NewName)) } |