/v1.33/containers/{id}/execRun a command inside a running container.
ID or name of container
Command to run, as a string or array of strings.
A list of environment variables in the form `["VAR=value", ...]`.
Allocate a pseudo-TTY.
The user, and optionally, group to run the exec process inside the container. Format is one of: `user`, `user:group`, `uid`, or `uid:gid`.
Override the key sequence for detaching a container. Format is a single character `[a-Z]` or `ctrl-<value>` where `<value>` is one of: `a-z`, `@`, `^`, `[`, `,` or `_`.
Runs the exec process with extended privileges.
Attach to `stdin` of the exec command.
Attach to `stderr` of the exec command.
Attach to `stdout` of the exec command.
{
"success": true,
"data": {
"id": "abc123",
"created_at": "2025-01-01T00:00:00Z"
}
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid request parameters"
}
}1curl --request POST \2 --url '/v1.33/containers/{id}/exec' \3 --header 'accept: application/json' \4 --header 'content-type: application/json'1{2 "success": true,3 "data": {4 "id": "abc123",5 "created_at": "2025-01-01T00:00:00Z"6 }7}/v1.33/containers/{id}/execRun a command inside a running container.
ID or name of container
Command to run, as a string or array of strings.
A list of environment variables in the form `["VAR=value", ...]`.
Allocate a pseudo-TTY.
The user, and optionally, group to run the exec process inside the container. Format is one of: `user`, `user:group`, `uid`, or `uid:gid`.
Override the key sequence for detaching a container. Format is a single character `[a-Z]` or `ctrl-<value>` where `<value>` is one of: `a-z`, `@`, `^`, `[`, `,` or `_`.
Runs the exec process with extended privileges.
Attach to `stdin` of the exec command.
Attach to `stderr` of the exec command.
Attach to `stdout` of the exec command.
{
"success": true,
"data": {
"id": "abc123",
"created_at": "2025-01-01T00:00:00Z"
}
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid request parameters"
}
}1curl --request POST \2 --url '/v1.33/containers/{id}/exec' \3 --header 'accept: application/json' \4 --header 'content-type: application/json'1{2 "success": true,3 "data": {4 "id": "abc123",5 "created_at": "2025-01-01T00:00:00Z"6 }7}