github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/e2e/oversubscription/testdata/docker.nomad (about)

     1  job "oversubscription-docker" {
     2    datacenters = ["dc1"]
     3  
     4    constraint {
     5      attribute = "${attr.kernel.name}"
     6      operator  = "set_contains_any"
     7      value     = "darwin,linux"
     8    }
     9  
    10    constraint {
    11      attribute = "${attr.unique.cgroup.version}"
    12      operator  = "="
    13      value     = "v2"
    14    }
    15  
    16    group "group" {
    17      task "task" {
    18        driver = "docker"
    19  
    20        config {
    21          image   = "busybox:1.29.2"
    22          command = "/bin/sh"
    23          args    = ["-c", "cat /sys/fs/cgroup/memory.max; sleep 1000"]
    24        }
    25  
    26        resources {
    27          cpu        = 500
    28          memory     = 20
    29          memory_max = 30
    30        }
    31      }
    32    }
    33  }