package docker-api

  1. Overview
  2. Docs
Binding to the Docker Remote API

Install

Dune Dependency

Authors

Maintainers

Sources

docker-api-0.1.tar.gz
sha256=7c759b3d0f237df09e0d2be0e0f1c0586bb840f702353236ce18f8b99c85ed75
md5=6745c33bddc7437d8bd725b91e783b93

doc/docker/Docker/index.html

Module Docker

Interface to Docker Remote API <https://www.docker.com>.

val set_default_addr : Unix.sockaddr -> unit

Set the address the Docker daemon listens to. This will be used by all funtions of this API unless the optioal parameter ~addr is used.

exception Invalid_argument of string

Invalid_argument msg can be raised by any function when an argument is incorrect. msg is the function raising the exception possibly followed by an explanation.

exception Server_error of string

Server_error fn_name indicates that the server encountered an error or that the returned response is incorrect. fn_name is the function raising the error.

exception Error of string * string

Error(fn_name, msg) is raised for connection of protocol errors. fn_name is the function raising the error and msg is a possible explanation for the error. Typically, this exception should not be raised with a well behaving server.

module Stream : sig ... end

A stream returned by some Docker functions.

module Container : sig ... end
module Images : sig ... end
type version = {
  1. api_version : string;
  2. version : string;
  3. git_commit : string;
  4. go_version : string;
}
val version : ?addr:Unix.sockaddr -> unit -> version
OCaml

Innovation. Community. Security.