2015-09-29 22:55:23 +00:00
|
|
|
---
|
|
|
|
layout: "docs"
|
|
|
|
page_title: "Drivers: Rkt"
|
|
|
|
sidebar_current: "docs-drivers-rkt"
|
|
|
|
description: |-
|
|
|
|
The Rkt task driver is used to run application containers using Rkt.
|
|
|
|
---
|
|
|
|
|
|
|
|
# Rkt Driver
|
|
|
|
|
|
|
|
Name: `rkt`
|
|
|
|
|
|
|
|
The `Rkt` driver provides an interface for using CoreOS Rkt for running
|
|
|
|
application containers. Currently, the driver supports launching
|
2015-10-07 21:48:06 +00:00
|
|
|
containers.
|
2015-09-29 22:55:23 +00:00
|
|
|
|
|
|
|
## Task Configuration
|
|
|
|
|
|
|
|
The `Rkt` driver supports the following configuration in the job spec:
|
|
|
|
|
2015-10-12 21:37:56 +00:00
|
|
|
* `trust_prefix` - **(Optional)** The trust prefix to be passed to rkt. Must be reachable from
|
|
|
|
the box running the nomad agent. If not specified, the image is run without
|
|
|
|
verifying the image signature.
|
|
|
|
* `image` - **(Required)** The image to run which may be specified by name,
|
|
|
|
hash, ACI address or docker registry.
|
|
|
|
* `command` - **(Optional**) A command to execute on the ACI.
|
2015-10-09 17:52:44 +00:00
|
|
|
* `args` - **(Optional**) A string of args to pass into the image.
|
2015-09-29 22:55:23 +00:00
|
|
|
|
2015-10-16 00:55:26 +00:00
|
|
|
## Task Directories
|
|
|
|
|
|
|
|
The `Rkt` driver does not currently support mounting the `alloc/` and `local/`
|
|
|
|
directory. It is currently blocked by this [Rkt
|
2015-10-16 01:19:13 +00:00
|
|
|
issue](https://github.com/coreos/rkt/issues/761). As such the coresponding
|
|
|
|
[environment variables](/docs/jobspec/environment.html#task_dir) are not set.
|
2015-10-16 00:55:26 +00:00
|
|
|
|
2015-09-29 22:55:23 +00:00
|
|
|
## Client Requirements
|
|
|
|
|
|
|
|
The `Rkt` driver requires rkt to be installed and in your systems `$PATH`.
|
|
|
|
The `trust_prefix` must be accessible by the node running Nomad. This can be an
|
|
|
|
internal source, private to your cluster, but it must be reachable by the client
|
|
|
|
over HTTP.
|
|
|
|
|
|
|
|
## Client Attributes
|
|
|
|
|
|
|
|
The `Rkt` driver will set the following client attributes:
|
|
|
|
|
2015-10-12 20:15:37 +00:00
|
|
|
* `driver.rkt` - Set to `1` if Rkt is found on the host node. Nomad determines
|
2015-09-29 22:55:23 +00:00
|
|
|
this by executing `rkt version` on the host and parsing the output
|
|
|
|
* `driver.rkt.version` - Version of `rkt` eg: `0.8.1`
|
|
|
|
* `driver.rkt.appc.version` - Version of `appc` that `rkt` is using eg: `0.8.1`
|
|
|
|
|
|
|
|
## Resource Isolation
|
|
|
|
|
|
|
|
This driver does not support any resource isolation as of now.
|