| 1 |
# NebulaOSS/nebula Docker Image |
| 2 |
|
| 3 |
## Building |
| 4 |
|
| 5 |
From the root of the repository, run `make docker`. |
| 6 |
|
| 7 |
## Running |
| 8 |
|
| 9 |
To run the built image, use the following command: |
| 10 |
|
| 11 |
``` |
| 12 |
docker run \ |
| 13 |
--name nebula \ |
| 14 |
--network host \ |
| 15 |
--cap-add NET_ADMIN \ |
| 16 |
--volume ./config:/config \ |
| 17 |
--rm \ |
| 18 |
nebulaoss/nebula |
| 19 |
``` |
| 20 |
|
| 21 |
A few notes: |
| 22 |
|
| 23 |
- The `NET_ADMIN` capability is necessary to create the tun adapter on the host (this is unnecessary if the tun device is disabled.) |
| 24 |
- `--volume ./config:/config` should point to a directory that contains your `config.yml` and any other necessary files. |