Container.Exec
val create :
?addr:Unix.sockaddr ->
?stdin:bool ->
?stdout:bool ->
?stderr:bool ->
?detach_keys:string ->
?env:string list ->
?privileged:bool ->
?user:string ->
id ->
string list ->
t
exec 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
.