package obuilder
Module Docker.CmdSource
Wrappers for various Docker client commands, exposing file descriptors.
type 'a log =
?stdout:[ `Dev_null | `FD_move_safely of Os.unix_fd ] ->
?stderr:[ `Dev_null | `FD_move_safely of Os.unix_fd ] ->
'aLog standard output and standard error of the sub-process.
Log only standard error of the sub-process.
Pulls a Docker image.
Exports a Docker container.
Exports a Docker container.
Operates on a Docker image.
Operates on a Docker image.
Removes a Docker container.
Removes a Docker container.
Removes a list of Docker images.
Removes a list of Docker images.
tag source_image target_image creates a new tag for a Docker iamge.
val commit :
([< `Docker_image of string ] ->
[< `Docker_container of string ] ->
[< `Docker_image of string ] ->
unit Lwt.t)
logtag 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.
val 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)
logerrcommit 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.
val volume_containers :
([< `Docker_volume of string ] ->
[> `Docker_container of string ] list Lwt.t)
logerrOperates on Docker volumes.
volume_containers vol returns the list of containers using vol.
volume_containers vol returns the list of containers using vol.
mount_point vol returns the mount point in the host filesystem of vol.
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.
val 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)
logrun ?stdin ?stdout ?stderr ?is_success ?name ?rm docker_argv image argv
val 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)
logerrrun ?stdin ?stdout ?stderr ?is_success ?name ?rm docker_argv image argv
run' ?stdin ?stdout ?stderr ?is_success ?name ?rm docker_argv image argv
val 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)
logrun' ?stdin ?stdout ?stderr ?is_success ?name ?rm docker_argv image argv
run_result ?stdin ?stdout ?stderr ?is_success ?name ?rm docker_argv image argv
val 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)
logerrrun_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
val 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)
logerrrun_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
Stop a Docker container.
val 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)
logOperates on a Docker manifest.
val exists :
([< `Docker_container of string
| `Docker_image of string
| `Docker_volume of string ] ->
(unit, [> `Msg of string ]) result Lwt.t)
logTests if an object exists.
Returns the list of this OBuilder instance images.
Returns the list of this OBuilder instance images.
Returns the list of this OBuilder instance containers.