package docker-api
Module Container.ExecSource
Source
val create :
?addr:Unix.sockaddr ->
?stdin:bool ->
?stdout:bool ->
?stderr:bool ->
?detach_keys:string ->
?env:string list ->
?privileged:bool ->
?user:string ->
id ->
string list ->
texec id cmd sets up an exec instance in the running container id that executes cmd. The command cmd has the form [prog; arg1;...; argN]. It 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, a message will be printed on the stderr component of the stream returned by start.
start exec_id starts a previously set up exec instance exec_id. Returns a stream that enable an interactive session with the command.