Create an exec instance
/v1.33
/v1.33
/v1.33
/v1.33
POST
/containers/{id}/exec
Exec
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/v1.33/containers//exec' \
--header 'Content-Type: application/json' \
--data-raw '{
"AttachStderr": true,
"AttachStdin": false,
"AttachStdout": true,
"Cmd": [
"date"
],
"DetachKeys": "ctrl-p,ctrl-q",
"Env": [
"FOO=bar",
"BAZ=quux"
],
"Tty": false
}'
Response Response Example
201 - Example 1
{
"Id": "string"
}
Request
Path Params
id
stringÂ
required
Body Params application/json
Responses
Modified at 2022-09-10 17:56:06