mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-02-21 02:01:35 +00:00
Changelog and docs for /v1/images/load
This commit is contained in:
parent
d58517f32d
commit
534035e7ae
@ -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]
|
||||
|
14
docs/API.md
14
docs/API.md
@ -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).
|
||||
|
Loading…
x
Reference in New Issue
Block a user