From 2d5f9d83e76ca6bc33541d539583d73c420eedc6 Mon Sep 17 00:00:00 2001 From: zebrilee Date: Sat, 29 Jul 2017 20:44:50 +0200 Subject: [PATCH] modify foo by container in order to clarify the documentation Signed-off-by: zebrilee --- docs/reference/commandline/cp.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/reference/commandline/cp.md b/docs/reference/commandline/cp.md index ff838632bf..903beeb3e0 100644 --- a/docs/reference/commandline/cp.md +++ b/docs/reference/commandline/cp.md @@ -105,11 +105,11 @@ running `tar` in `docker exec`. Both of the following examples do the same thing in different ways (consider `SRC_PATH` and `DEST_PATH` are directories): ```bash -$ docker exec foo tar Ccf $(dirname SRC_PATH) - $(basename SRC_PATH) | tar Cxf DEST_PATH - +$ docker exec CONTAINER tar Ccf $(dirname SRC_PATH) - $(basename SRC_PATH) | tar Cxf DEST_PATH - ``` ```bash -$ tar Ccf $(dirname SRC_PATH) - $(basename SRC_PATH) | docker exec -i foo tar Cxf DEST_PATH - +$ tar Ccf $(dirname SRC_PATH) - $(basename SRC_PATH) | docker exec -i CONTAINER tar Cxf DEST_PATH - ``` Using `-` as the `SRC_PATH` streams the contents of `STDIN` as a tar archive.