docker-api.el icon indicating copy to clipboard operation
docker-api.el copied to clipboard

Emacs interface to the Docker Remote API

Docker Remote API

Emacs interface to the Docker Remote API.

Examples

List images

(--each (docker-api-images)
  (message "image: %s size: %d" (car (assoc-default 'RepoTags it)) (assoc-default 'Size it)))

Different DOCKER_HOST

(docker-api-with-connection "http://myhost.com:1234"
  (docker-api-images))

TRAMP

(let ((default-directory "/ssh:[email protected]:"))
  (docker-api-images))

Utilities

docker-api-http-request (method path)

Make a docker HTTP request using method ('get, 'post or 'delete) at PATH (/images/json, etc).

docker-api-json-request (method path)

Same as docker-api-http-request but parses results as JSON.