Library
Module
Module type
Parameter
Class
Class type
The docker engine running on Host
.
module Image : sig ... end
val pull :
?auth:(string * string) ->
?label:string ->
?arch:string ->
schedule:Current_cache.Schedule.t ->
string ->
Image.t Current.t
pull ~schedule tag
ensures that the latest version of tag
is cached locally, downloading it if not.
val peek :
?label:string ->
arch:string ->
schedule:Current_cache.Schedule.t ->
string ->
S.repo_id Current.t
peek ~schedule ~arch tag
gets the latest version of tag
without actually pulling it.
val build :
?level:Current.Level.t ->
?schedule:Current_cache.Schedule.t ->
?timeout:Duration.t ->
?squash:bool ->
?buildx:bool ->
?label:string ->
?dockerfile:[ `File of Fpath.t | `Contents of string ] Current.t ->
?path:Fpath.t ->
?pool:unit Current.Pool.t ->
?build_args:string list ->
pull:bool ->
S.source ->
Image.t Current.t
build ~pull src
builds a Docker image from source.
val run :
?label:string ->
?pool:unit Current.Pool.t ->
?run_args:string list ->
Image.t Current.t ->
args:string list ->
unit Current.t
run image ~args
runs image args
with Docker.
val pread :
?label:string ->
?pool:unit Current.Pool.t ->
?run_args:string list ->
Image.t Current.t ->
args:string list ->
string Current.t
pread image ~args
runs image args
with Docker the same way than run
does but returns its stdout as a string.
tag image ~tag
does "docker tag image tag"
push image ~tag
does "docker tag image tag && docker push tag".
service ~name ~image ()
keeps a Docker SwarmKit service up-to-date.
compose ?pull ~name ~image ~contents ()
keeps a Docker Compose deployment up-to-date. contents
contains the full Compose Yaml file.
val compose_cli :
?pull:bool ->
?up_args:string list ->
name:string ->
detach:bool ->
contents:string Current.t ->
unit ->
unit Current.t
compose_cli ~name ~image ~contents ()
keeps a Docker Compose Cli deployment up-to-date. contents
contains the full Compose Yaml file. up_args
contains additional arguments to pass to the docker compose up command. This calls docker compose which is GA as of April 2022 and should be used in preference over version 1.