github.com/hernad/nomad@v1.6.112/e2e/nomadexec/testdata/docker.nomad (about)

     1  # Copyright (c) HashiCorp, Inc.
     2  # SPDX-License-Identifier: MPL-2.0
     3  
     4  job "nomadexec-docker" {
     5    datacenters = ["dc1"]
     6  
     7    constraint {
     8      attribute = "${attr.kernel.name}"
     9      value     = "linux"
    10    }
    11  
    12    group "group" {
    13      task "task" {
    14        driver = "docker"
    15  
    16        config {
    17          image   = "busybox:1.29.2"
    18          command = "/bin/sleep"
    19          args    = ["1000"]
    20        }
    21  
    22        resources {
    23          cpu    = 500
    24          memory = 256
    25        }
    26      }
    27    }
    28  }