|
@@ -23,7 +23,7 @@ You can copy from the container's file system to the local machine or the
|
|
reverse, from the local filesystem to the container. If `-` is specified for
|
|
reverse, from the local filesystem to the container. If `-` is specified for
|
|
either the `SRC_PATH` or `DEST_PATH`, you can also stream a tar archive from
|
|
either the `SRC_PATH` or `DEST_PATH`, you can also stream a tar archive from
|
|
`STDIN` or to `STDOUT`. The `CONTAINER` can be a running or stopped container.
|
|
`STDIN` or to `STDOUT`. The `CONTAINER` can be a running or stopped container.
|
|
-The `SRC_PATH` or `DEST_PATH` be a file or directory.
|
|
|
|
|
|
+The `SRC_PATH` or `DEST_PATH` can be a file or directory.
|
|
|
|
|
|
The `docker cp` command assumes container paths are relative to the container's
|
|
The `docker cp` command assumes container paths are relative to the container's
|
|
`/` (root) directory. This means supplying the initial forward slash is optional;
|
|
`/` (root) directory. This means supplying the initial forward slash is optional;
|
|
@@ -85,4 +85,4 @@ It is not possible to copy certain system files such as resources under
|
|
Using `-` as the `SRC_PATH` streams the contents of `STDIN` as a tar archive.
|
|
Using `-` as the `SRC_PATH` streams the contents of `STDIN` as a tar archive.
|
|
The command extracts the content of the tar to the `DEST_PATH` in container's
|
|
The command extracts the content of the tar to the `DEST_PATH` in container's
|
|
filesystem. In this case, `DEST_PATH` must specify a directory. Using `-` as
|
|
filesystem. In this case, `DEST_PATH` must specify a directory. Using `-` as
|
|
-`DEST_PATH` streams the contents of the resource as a tar archive to `STDOUT`.
|
|
|
|
|
|
+the `DEST_PATH` streams the contents of the resource as a tar archive to `STDOUT`.
|