From 635c161f38aa68c40d98b108f6a3b12f0e36a58a Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Wed, 29 May 2019 03:56:47 -0400 Subject: add missing container cp command 'docker cp' is an alias for 'docker container cp', and podman should have the equivalent alias. Signed-off-by: Jose Diaz-Gonzalez --- cmd/podman/container.go | 1 + completions/bash/podman | 5 +++++ docs/podman-container.1.md | 1 + 3 files changed, 7 insertions(+) diff --git a/cmd/podman/container.go b/cmd/podman/container.go index 530175a55..839ae3a0e 100644 --- a/cmd/podman/container.go +++ b/cmd/podman/container.go @@ -54,6 +54,7 @@ var ( _checkpointCommand, _containerExistsCommand, _contInspectSubCommand, + _cpCommand, _diffCommand, _exportCommand, _createCommand, diff --git a/completions/bash/podman b/completions/bash/podman index 60d5fde52..2c334957e 100644 --- a/completions/bash/podman +++ b/completions/bash/podman @@ -764,6 +764,10 @@ _podman_container_commit() { _podman_commit } +_podman_container_cp() { + _podman_cp +} + _podman_container_create() { _podman_create } @@ -961,6 +965,7 @@ _podman_container() { attach checkpoint commit + cp create diff exec diff --git a/docs/podman-container.1.md b/docs/podman-container.1.md index 564d791fa..eb53149bd 100644 --- a/docs/podman-container.1.md +++ b/docs/podman-container.1.md @@ -17,6 +17,7 @@ The container command allows you to manage containers | checkpoint | [podman-container-checkpoint(1)](podman-container-checkpoint.1.md) | Checkpoints one or more containers. | | cleanup | [podman-container-cleanup(1)](podman-container-cleanup.1.md) | Cleanup containers network and mountpoints. | | commit | [podman-commit(1)](podman-commit.1.md) | Create new image based on the changed container. | +| cp | [podman-cp(1)](podman-cp.1.md) | Copy files/folders between a container and the local filesystem. | | create | [podman-create(1)](podman-create.1.md) | Create a new container. | | diff | [podman-diff(1)](podman-diff.1.md) | Inspect changes on a container or image's filesystem. | | exec | [podman-exec(1)](podman-exec.1.md) | Execute a command in a running container. | -- cgit v1.2.3-54-g00ecf