ExecConfig

interface ExecConfig {
    AttachStderr?: boolean;
    AttachStdin?: boolean;
    AttachStdout?: boolean;
    Cmd?: string[];
    DetachKeys?: string;
    Env?: string[];
    Privileged?: boolean;
    Tty?: boolean;
    User?: string;
    WorkingDir?: string;
}

Properties

AttachStderr?: boolean

Attach to stderr of the exec command.

AttachStdin?: boolean

Attach to stdin of the exec command.

AttachStdout?: boolean

Attach to stdout of the exec command.

Cmd?: string[]

Command to run, as a string or array of strings.

DetachKeys?: string

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 _.

Env?: string[]

A list of environment variables in the form [\"VAR=value\", ...].

Privileged?: boolean

Runs the exec process with extended privileges.

Tty?: boolean

Allocate a pseudo-TTY.

User?: string

The user, and optionally, group to run the exec process inside the container. Format is one of: user, user:group, uid, or uid:gid.

WorkingDir?: string

The working directory for the exec process inside the container.