Changelog and docs for /v1/images/load

This commit is contained in:
Pablo Carranza Velez 2016-05-18 15:11:36 -03:00
parent d58517f32d
commit 534035e7ae
2 changed files with 17 additions and 0 deletions

View File

@ -1,3 +1,6 @@
* Use rwlock to block when pulling images [Pablo]
* Increase API timeout to 15 minutes, and make it configurable [Pablo]
* Add endpoint to load images from a docker save tar [Pablo]
* Add endpoints to manage images and containers locally [Pablo]
* Only use bodyParser for endpoints that need it [Pablo]
* Add RESIN_APP_ID variable [Pablo]

View File

@ -518,6 +518,20 @@ $ curl -X POST \
<hr>
### POST /v1/images/load
Works like [/images/load from the Docker API](https://docs.docker.com/engine/reference/api/docker_remote_api_v1.22/#load-a-tarball-with-a-set-of-images-and-tags-into-docker).
Allows the creation of images from a tar archive produced by `docker save`.
#### Example:
```bash
$ curl -X POST --data-binary @images.tar \
"$RESIN_SUPERVISOR_ADDRESS/v1/images/load?apikey=$RESIN_SUPERVISOR_API_KEY"
```
<hr>
### DELETE /v1/images/:name
Deletes image with name `name`. Works like [DELETE /images/(name) from the Docker API](https://docs.docker.com/engine/reference/api/docker_remote_api_v1.22/#remove-an-image).