Nomad GPU tasks lifecycle stanza not working?

Hey,
is the lifecycle stanza not working with device (nvidia) stanza?
If I run this job:


job "gpu-test" {
  datacenters = ["dc1"]
  type = "batch"

  group "smi" {
    task "smi" {
      lifecycle {
        hook    = "prestart"
        sidecar = false
      }
      driver = "docker"

      config {
        image = "nvidia/cuda:11.0.3-base-ubuntu20.04"
        command = "nvidia-smi"
      }

      resources {
        device "nvidia/gpu" {}
      }
    }
    task "smi2" {
      driver = "docker"

      config {
        image = "nvidia/cuda:11.0.3-base-ubuntu20.04"
        command = "nvidia-smi"
      }

      resources {
        device "nvidia/gpu" {}
      }
    }
  }
}

I get Constraint missing devices filtered 2 nodes

Thanks, Bjoern