package docker-api

  1. Overview
  2. Docs
Binding to the Docker Remote API

Install

Dune Dependency

Authors

Maintainers

Sources

docker-api-0.1.tar.gz
sha256=7c759b3d0f237df09e0d2be0e0f1c0586bb840f702353236ce18f8b99c85ed75
md5=6745c33bddc7437d8bd725b91e783b93

doc/docker/Docker/Container/Exec/index.html

Module Container.Exec

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.

OCaml

Innovation. Community. Security.