summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Diaz-Gonzalez <email@josediazgonzalez.com>2019-05-29 03:56:47 -0400
committerJose Diaz-Gonzalez <email@josediazgonzalez.com>2019-05-29 12:44:25 -0400
commit635c161f38aa68c40d98b108f6a3b12f0e36a58a (patch)
treee1e5ff68c7f4ce98cebb60a601f5326006da92e7
parentcd5bc9c4c5cdc0a51921fae8e58a4b8962cda6e6 (diff)
downloadpodman-635c161f38aa68c40d98b108f6a3b12f0e36a58a.tar.gz
podman-635c161f38aa68c40d98b108f6a3b12f0e36a58a.tar.bz2
podman-635c161f38aa68c40d98b108f6a3b12f0e36a58a.zip
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 <email@josediazgonzalez.com>
-rw-r--r--cmd/podman/container.go1
-rw-r--r--completions/bash/podman5
-rw-r--r--docs/podman-container.1.md1
3 files changed, 7 insertions, 0 deletions
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. |