File: docker.md

package info (click to toggle)
lava 2026.02-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 31,432 kB
  • sloc: python: 83,095; javascript: 16,658; sh: 1,364; makefile: 328
file content (31 lines) | stat: -rw-r--r-- 713 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Docker device setup

LAVA can use docker as a DUT and run test under Docker.

## Create device-type

[Create the device type](common.md#create-device-type) using the name **`docker`**.

## Create device

1. [Add the device](common.md#add-device) using the following settings:
    * **Device Type:** `docker`
    * **Hostname:** A unique name (e.g., `docker-01`)
2. [Add the device configuration](common.md#add-device-configuration).

    For a standard docker device and a simple docker job, the following device
    dictionary should be sufficient:

    ```jinja
    {% extends "docker.jinja2" %}
    ```

## Submit a job

Submit this simple test job:

```yaml
--8<-- "jobs/docker.yaml"
```

--8<-- "refs.txt"