![]() 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 <mustafa91@gmail.com> (github: SvenDowideit) |
||
---|---|---|
.. | ||
_static | ||
docker-io_api.md | ||
docker_io_accounts_api.md | ||
docker_remote_api.md | ||
docker_remote_api_v1.0.md | ||
docker_remote_api_v1.1.md | ||
docker_remote_api_v1.2.md | ||
docker_remote_api_v1.3.md | ||
docker_remote_api_v1.4.md | ||
docker_remote_api_v1.5.md | ||
docker_remote_api_v1.6.md | ||
docker_remote_api_v1.7.md | ||
docker_remote_api_v1.8.md | ||
docker_remote_api_v1.9.md | ||
docker_remote_api_v1.10.md | ||
docker_remote_api_v1.11.md | ||
docker_remote_api_v1.12.md | ||
docker_remote_api_v1.13.md | ||
docker_remote_api_v1.14.md | ||
docker_remote_api_v1.15.md | ||
hub_registry_spec.md | ||
README.md | ||
registry_api.md | ||
remote_api_client_libraries.md |
This directory holds the authoritative specifications of APIs defined and implemented by Docker. Currently this includes:
- The remote API by which a docker node can be queried over HTTP
- The registry API by which a docker node can download and upload images for storage and sharing
- The index search API by which a docker node can search the public index for images to download
- The docker.io OAuth and accounts API which 3rd party services can use to access account information