package obuilder

  1. Overview
  2. Docs

Module Docker.CmdSource

Wrappers for various Docker client commands, exposing file descriptors.

Sourcetype 'a log = ?stdout:[ `Dev_null | `FD_move_safely of Os.unix_fd ] -> ?stderr:[ `Dev_null | `FD_move_safely of Os.unix_fd ] -> 'a

Log standard output and standard error of the sub-process.

Sourcetype 'a logerr = ?stderr:[ `Dev_null | `FD_move_safely of Os.unix_fd ] -> 'a

Log only standard error of the sub-process.

Sourceval version : (unit -> (string, [> `Msg of string ]) result Lwt.t) logerr
Sourceval pull : ([< `Docker_image of string ] -> unit Lwt.t) log

Pulls a Docker image.

Sourceval export : ([< `Docker_container of string ] -> unit Lwt.t) log

Pulls a Docker image.

Exports a Docker container.

Sourceval image : ([< `Remove of [< `Docker_image of string ] ] -> unit Lwt.t) log

Exports a Docker container.

Operates on a Docker image.

Sourceval rm : ([ `Docker_container of string ] list -> unit Lwt.t) log

Operates on a Docker image.

Removes a Docker container.

Sourceval rmi : ([ `Docker_image of string ] list -> unit Lwt.t) log

Removes a Docker container.

Removes a list of Docker images.

Sourceval tag : ([< `Docker_image of string ] -> [< `Docker_image of string ] -> unit Lwt.t) log

Removes a list of Docker images.

tag source_image target_image creates a new tag for a Docker iamge.

Sourceval commit : ([< `Docker_image of string ] -> [< `Docker_container of string ] -> [< `Docker_image of string ] -> unit Lwt.t) log

tag source_image target_image creates a new tag for a Docker iamge.

commit base_image container target_image commits the container to the target_image using base_image (typically the container's base image) entrypoint and cmd.

Sourceval volume : (?timeout:float -> [< `Create of [< `Docker_volume of string ] | `Inspect of [< `Docker_volume of string ] list * [< `Mountpoint ] | `List of string option | `Remove of [< `Docker_volume of string ] list ] -> string Lwt.t) logerr

commit base_image container target_image commits the container to the target_image using base_image (typically the container's base image) entrypoint and cmd.

Operates on Docker volumes.

Sourceval volume_containers : ([< `Docker_volume of string ] -> [> `Docker_container of string ] list Lwt.t) logerr

Operates on Docker volumes.

volume_containers vol returns the list of containers using vol.

Sourceval mount_point : ([< `Docker_volume of string ] -> string Lwt.t) logerr

volume_containers vol returns the list of containers using vol.

mount_point vol returns the mount point in the host filesystem of vol.

Sourceval build : (string list -> [< `Docker_image of string ] -> string -> unit Lwt.t) log

mount_point vol returns the mount point in the host filesystem of vol.

build docker_args image context_path builds the Docker image using the context located in context_path.

Sourceval run : ?stdin:[ `Dev_null | `FD_move_safely of Os.unix_fd ] -> (?is_success:(int -> bool) -> ?name:[< `Docker_container of string ] -> ?rm:bool -> string list -> [< `Docker_image of string ] -> string list -> unit Lwt.t) log

run ?stdin ?stdout ?stderr ?is_success ?name ?rm docker_argv image argv

Sourceval run' : ?stdin:[ `Dev_null | `FD_move_safely of Os.unix_fd ] -> ?stdout:[ `Dev_null | `FD_move_safely of Os.unix_fd ] -> (?is_success:(int -> bool) -> ?name:[< `Docker_container of string ] -> ?rm:bool -> string list -> [< `Docker_image of string ] -> string list -> unit Lwt.t) logerr

run ?stdin ?stdout ?stderr ?is_success ?name ?rm docker_argv image argv

run' ?stdin ?stdout ?stderr ?is_success ?name ?rm docker_argv image argv

Sourceval run_result : ?stdin:[ `Dev_null | `FD_move_safely of Os.unix_fd ] -> (?name:[< `Docker_container of string ] -> ?rm:bool -> string list -> [< `Docker_image of string ] -> string list -> (unit, [> `Msg of string ]) result Lwt.t) log

run' ?stdin ?stdout ?stderr ?is_success ?name ?rm docker_argv image argv

run_result ?stdin ?stdout ?stderr ?is_success ?name ?rm docker_argv image argv

Sourceval run_result' : ?stdin:[ `Dev_null | `FD_move_safely of Os.unix_fd ] -> ?stdout:[ `Dev_null | `FD_move_safely of Os.unix_fd ] -> (?name:[< `Docker_container of string ] -> ?rm:bool -> string list -> [< `Docker_image of string ] -> string list -> (unit, [> `Msg of string ]) result Lwt.t) logerr

run_result ?stdin ?stdout ?stderr ?is_success ?name ?rm docker_argv image argv

run_result ?stdin ?stdout ?stderr ?is_success ?name ?rm docker_argv image argv

Sourceval run_pread_result : ?stdin:[ `Dev_null | `FD_move_safely of Os.unix_fd ] -> (?name:[< `Docker_container of string ] -> ?rm:bool -> string list -> [< `Docker_image of string ] -> string list -> (string, [> `Msg of string ]) result Lwt.t) logerr

run_result ?stdin ?stdout ?stderr ?is_success ?name ?rm docker_argv image argv

run_pread_result ?stdin ?stdout ?stderr ?is_success ?name ?rm docker_argv image argv

Sourceval stop : ([< `Docker_container of string ] -> (unit, [> `Msg of string ]) result Lwt.t) log

Stop a Docker container.

Sourceval manifest : ([< `Create of [< `Docker_image of string ] * [< `Docker_image of string ] list | `Inspect of [< `Docker_image of string ] | `Remove of [< `Docker_image of string ] list ] -> (unit, [> `Msg of string ]) result Lwt.t) log

Operates on a Docker manifest.

Sourceval exists : ([< `Docker_container of string | `Docker_image of string | `Docker_volume of string ] -> (unit, [> `Msg of string ]) result Lwt.t) log

Tests if an object exists.

Sourceval obuilder_images : (?tmp:bool -> unit -> [ `Docker_image of string ] list Lwt.t) logerr

Returns the list of this OBuilder instance images.

Sourceval obuilder_containers : (unit -> [ `Docker_container of string ] list Lwt.t) logerr

Returns the list of this OBuilder instance images.

Returns the list of this OBuilder instance containers.

Sourceval obuilder_volumes : (?prefix:string -> unit -> [ `Docker_volume of string ] list Lwt.t) logerr

Returns the list of this OBuilder instance containers.

Returns the list of this OBuilder instance volumes.

Sourceval obuilder_caches_tmp : (unit -> [ `Docker_volume of string ] list Lwt.t) logerr

Returns the list of this OBuilder instance volumes.

Returns the list of this OBuilder instance temporary caches.

OCaml

Innovation. Community. Security.