summaryrefslogtreecommitdiff
path: root/pkg/domain/infra/tunnel
diff options
context:
space:
mode:
authorPaul Holzinger <paul.holzinger@web.de>2021-01-15 11:50:23 +0100
committerPaul Holzinger <paul.holzinger@web.de>2021-01-15 12:57:22 +0100
commitc9bd292b32a6ca4c57a5dd8e9b2cc9ae3272e9b6 (patch)
tree4fec373f34beb3460facf2954916fb8aed3934ae /pkg/domain/infra/tunnel
parent3fcf346890c0437611fc18c30d58cc2d9f61fe6c (diff)
downloadpodman-c9bd292b32a6ca4c57a5dd8e9b2cc9ae3272e9b6.tar.gz
podman-c9bd292b32a6ca4c57a5dd8e9b2cc9ae3272e9b6.tar.bz2
podman-c9bd292b32a6ca4c57a5dd8e9b2cc9ae3272e9b6.zip
Container rename bindings
Add bindings and podman-remote support for container rename. Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
Diffstat (limited to 'pkg/domain/infra/tunnel')
-rw-r--r--pkg/domain/infra/tunnel/containers.go2
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))
}