v1
latestOpenAPI 3.0.02026-07-1410578280.2 KBExec
Create an exec instance
Run a command inside a running container.
post/containers/{id}/exec
Path parameters
idstring required
ID or name of container
Request body
Example request
{
"AttachStderr": true,
"AttachStdin": false,
"AttachStdout": true,
"Cmd": [
"date"
],
"DetachKeys": "ctrl-p,ctrl-q",
"Env": [
"FOO=bar",
"BAZ=quux"
],
"Tty": false
}Response
no error