v1
latestSwagger 2.02026-07-17107105401.6 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
{
"AttachStdin": false,
"AttachStdout": true,
"AttachStderr": true,
"DetachKeys": "ctrl-p,ctrl-q",
"Tty": false,
"Cmd": [
"date"
],
"Env": [
"FOO=bar",
"BAZ=quux"
]
}Response
no error