Library
Module
Module type
Parameter
Class
Class type
The docker engine running on Host
.
module Image : sig ... end
val pull :
?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 ->
?label:string ->
?dockerfile:[ `File of Fpath.t | `Contents of string ] Current.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.