dockerd Rest API - HaymonEdmur/DockerConfiguration GitHub Wiki
Docker Rest Queries
Version
curl http://192.168.1.25:2375/v1.35/version
Images
http://192.168.1.25:2375/v1.35/images/json
info
http://192.168.1.25:2375/v1.35/info
Image history
http://192.168.1.25:2375/v1.35/images/alpine/history
Delete image
curl -X DELETE -i 'http://192.168.1.25:2375/v1.35/images/alpine'
Volume listing
curl -X GET 'http://192.168.1.25:2375/v1.35/volumes'
More Samples
# Check the status:
curl http://docker1:2375/v1.37/_ping
# Delete Images:
curl -X DELETE http://docker1:2375/v1.37/images/ubuntu:14.04.5
# Use Bash syntax to delete a batch of images (tags: 12.10,13.10)
curl -X DELETE http://docker1:2375/v1.37/images/ubuntu:{12,13}.10
# Pull image (without tag all versions would be downloaded)
curl -X POST http://docker1:2375/v1.37/images/create?fromImage=ubuntu:14.04.5
# Get the tarball of existing image ( this is raw layers archives )
# The following tar can be imported by "docker image import XXX.tar alpine:latest
curl -X GET http://docker1:2375/v1.37/images/alpine:latest/get