open-nomad/website/source/docs/drivers/raw_exec.html.md

1.2 KiB

layout page_title sidebar_current description
docs Drivers: Raw Exec docs-drivers-raw-exec The Raw Exec task driver simply fork/execs and provides no isolation.

Raw Fork/Exec Driver

Name: raw_exec

The raw_exec driver is used to execute a command for a task without any isolation. Further, the task is started as the same user as the Nomad process. As such, it should be used with extreme care and is disabled by default.

Task Configuration

The raw_exec driver supports the following configuration in the job spec:

  • command - The command to execute. Must be provided.

  • args - The argument list to the command, space seperated. Optional.

Client Requirements

The raw_exec driver can run on all supported operating systems. It is however disabled by default. In order to be enabled, the Nomad client configuration must explicitly enable the raw_exec driver in the options field:

options = {
    driver.raw_exec.enable = "1"
}

Client Attributes

The raw_exec driver will set the following client attributes:

  • driver.raw_exec - This will be set to "1", indicating the driver is available.

Resource Isolation

The raw_exec driver provides no isolation.