From 816f39672ab7128dcfe7e72919d64dd3eb5cee5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mustafa=20Ak=C4=B1n?= Date: Thu, 4 Sep 2014 18:35:52 +0300 Subject: [PATCH] Update docker_remote_api_v1.14.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It is a tar stream, you should mention that somehow. Here is the proof: ``` host:~$ docker run -t -i ubuntu:14.04 bash root@c39be4c7b7c8:/# echo "my file contents" > abc root@c39be4c7b7c8:/# cat abc my file contents root@c39be4c7b7c8:/# exit host:~$ curl -H "Content-Type: application/json" -d '{"Resource":"/abc"}' http://localhost:4500/containers/c39be4c7b7c8/copy abc0100644000000000000000000000002112402102531007674 0ustar0000000000000000my file contents host:~$ curl -H "Content-Type: application/json" -d '{"Resource":"/abc"}' http://localhost:4500/containers/c39be4c7b7c8/copy > response_content % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 2067 100 2048 100 19 56968 528 --:--:-- --:--:-- --:--:-- 58514 host:~$ tar xvf response_content abc host:~$ cat abc my file contents ``` Docker-DCO-1.1-Signed-off-by: Mustafa Akın (github: SvenDowideit) Upstream-commit: b9e889c30988f3babbc059a883d7f3096611ad60 Component: engine --- .../docs/sources/reference/api/docker_remote_api_v1.14.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/engine/docs/sources/reference/api/docker_remote_api_v1.14.md b/components/engine/docs/sources/reference/api/docker_remote_api_v1.14.md index ec38b8fc1a..98477024b2 100644 --- a/components/engine/docs/sources/reference/api/docker_remote_api_v1.14.md +++ b/components/engine/docs/sources/reference/api/docker_remote_api_v1.14.md @@ -712,7 +712,7 @@ Copy files or folders of container `id` HTTP/1.1 200 OK Content-Type: application/octet-stream - {{ STREAM }} + {{ TAR STREAM }} Status Codes: