Skip to content

dsdk / v1.47 / ContainerExecData

Type Alias: ContainerExecData ​

ContainerExecData: object

Type declaration ​

NameTypeDescription
bodyobjectExec configuration
body.AttachStderr?booleanAttach to stderr of the exec command.
body.AttachStdin?booleanAttach to stdin of the exec command.
body.AttachStdout?booleanAttach to stdout of the exec command.
body.Cmd?string[]Command to run, as a string or array of strings.
body.ConsoleSize?[number, number] | nullInitial console size, as an [height, width] array.
body.DetachKeys?stringOverride 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 _.
body.Env?string[]A list of environment variables in the form ["VAR=value", ...].
body.Privileged?booleanRuns the exec process with extended privileges.
body.Tty?booleanAllocate a pseudo-TTY.
body.User?stringThe user, and optionally, group to run the exec process inside the container. Format is one of: user, user:group, uid, or uid:gid.
body.WorkingDir?stringThe working directory for the exec process inside the container.
pathobject-
path.idstringID or name of container