An open API service indexing awesome lists of open source software.

https://github.com/noenv/docker-nomad

Nomad Agent as Docker Image
https://github.com/noenv/docker-nomad

container docker hashicorp nomad podman

Last synced: about 1 year ago
JSON representation

Nomad Agent as Docker Image

Awesome Lists containing this project

README

          

[![Docker Pulls](https://badgen.net/docker/pulls/noenv/nomad)](https://hub.docker.com/r/noenv/nomad)
[![Quay.io Enabled](https://badgen.net/badge/quay%20pulls/enabled/green)](https://quay.io/repository/noenv/nomad)
[![build](https://github.com/NoEnv/docker-nomad/actions/workflows/build.yml/badge.svg)](https://github.com/NoEnv/docker-nomad/actions/workflows/build.yml)

## docker-nomad

#### Description

Nomad Agent as Docker Image.

#### Run

most simple way of running the container

docker run --rm noenv/nomad

advanced usage

docker run --name nomad --net=host --privileged -v /tmp:/tmp -v /var/run/docker.sock:/var/run/docker.sock -v /nomad:/nomad -v /etc/os-release:/etc/os-release noenv/nomad agent -config=/nomad/config

> the nomad directory must be the same in the container as well as on the host

example config (/nomad/config/server.hcl)
```
data_dir = "/nomad/data"
server {
enabled = true
bootstrap_expect = 1
}
client {
enabled = true
node_class = "controller"
options {
"driver.whitelist" = "docker",
"docker.auth.config" = "/nomad/.docker/config.json"
}
}
consul {
address = "172.17.0.1:8500"
auto_advertise = true
server_auto_join = true
client_auto_join = true
}
```

#### Source

https://github.com/noenv/docker-nomad