package docker-api

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t
val create : ?addr:Unix.sockaddr -> ?stdin:bool -> ?stdout:bool -> ?stderr:bool -> id -> string list -> t

exec id cmd sets up an exec instance in the running container id that executes cmd. cmd has the form [prog; arg1;...; argN]. This command will not be restarted if the container is restarted. If the container is paused, then the command will wait until the container is unpaused, and then run. The output of this command is not logged by the container. If the command does not exist, an message will be printed on the stderr component of the stream returned by start.

  • parameter stdin

    whether to attach stdin. Default: false.

  • parameter stdout

    whether to attach stdout. Default: true.

  • parameter stderr

    whether to attach stderr. Default: true.

val start : ?addr:Unix.sockaddr -> t -> Stream.t

start exec_id starts a previously set up exec instance exec_id. Returns a stream that enable an interactive session with the command.