Docker.Image
val list : ?addr:Unix.sockaddr -> ?all:bool -> unit -> t list
list ()
return the list of images.
type source =
| Image of {
} | |||
| Src of string | |||
| Stdin of {
} |
See create
.
val create : ?addr:Unix.sockaddr -> ?platform:string -> source -> unit
create from
creates an image by either pulling it from a registry or importing it.
`Image img
provides the name img.name
of the image. The name may include a tag or digest img.tag
. If img.tag
is empty when pulling an image, it causes all tags for the given image to be pulled.`Src url
provides the url
from which the image can be retrieved.`Stdin img
provides the image as its length img.len
and a function img.write fd len
that will write the image on fd
.val from_image : ?repo:string -> ?tag:string -> string -> source
from_image name
convenience function that returns an Image
source.