Docker Driver Windows isolation mode

Hello all,

We are attempting to evaluate Nomad for some of our windows workloads that run in native docker process mode + hyper-v mode and I ran into a slight snag.

The mode that I’m referring to needs to run with the flag --isolation=hyperv

I don’t see anywhere in the Docs that allow us to specify the isolation mode when running a Windows container? For instance something like this:

docker run -d --isolation=hyperv test.azurecr.io/images/dev/test:20201117.1

I tried to add the “isolation” to the config block but it fails, any ideas if this is possible?

job "testjob" {
  datacenters = ["east"]
  group "echo" {
    count = 1
    task "server" {
      driver = "docker"
      config {
        image = "test.azurecr.io/images/dev/test:20201117.1"
      }
      resources {
        network {
          port "http" {
            static = 8080
          }
        }
      }
    }
  }
}

Any assistance would be appreciated! Thank you!

Hi @dky! We don’t currently support this flag (I don’t think it’s supported by the client library we’re using). Can you open a GitHub issue so we can get that as a feature request for our roadmap?

1 Like

Hi, @tgross Thank you! We ended up avoiding doing this in the end. The hyper-v memory usage was off the roof and not a good choice.