diff options
author | Paul Holzinger <paul.holzinger@web.de> | 2021-01-15 11:50:23 +0100 |
---|---|---|
committer | Paul Holzinger <paul.holzinger@web.de> | 2021-01-15 12:57:22 +0100 |
commit | c9bd292b32a6ca4c57a5dd8e9b2cc9ae3272e9b6 (patch) | |
tree | 4fec373f34beb3460facf2954916fb8aed3934ae /pkg/domain | |
parent | 3fcf346890c0437611fc18c30d58cc2d9f61fe6c (diff) | |
download | podman-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')
-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)) } |