# Failed to create container

**URL:** <https://discuss.hashicorp.com/t/failed-to-create-container/3786>\
**Category:** Nomad\
**Created:** [November 8, 2019, 6:41am UTC](https://discuss.hashicorp.com/t/failed-to-create-container/3786 "2019-11-08T06:41:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![damonkim-83](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/damonkim-83/32/3029_2.png) [@damonkim-83](https://discuss.hashicorp.com/u/damonkim-83)\
**Post date:** [November 8, 2019, 6:41am UTC](https://discuss.hashicorp.com/t/failed-to-create-container/3786/1 "2019-11-08T06:41:14Z")

</div>

Hi, I have a nomad cluster that organized one server (win10 ent) and one client(win10 ent).  
I create example job. (aka\> nomad job init).  
But job failed to running.

fail reason is “failed to create container: API error (500): invalid volume specification: ‘c:\Nomad\alloc\6a4d7ff0-f630-2980-002d-15976f82d5d0\alloc:c:\alloc’”

Server and client also set up “-data-dir” when run nomad agent.

I don’t know why job running failed.

Plz help me.

---

<div class="post-metadata">

**Author:** ![shantanugadgil](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/shantanugadgil/32/923_2.png) [@shantanugadgil](https://discuss.hashicorp.com/u/shantanugadgil)\
**Post date:** [November 8, 2019, 10:46am UTC](https://discuss.hashicorp.com/t/failed-to-create-container/3786/2 "2019-11-08T10:46:36Z")

</div>

What I suggest is to try the minimal ( **short** ) redis example, using `nomad job init -short` ?

Not sure if your Windows will be able to handle the Linux containers, for that, you could try and modify the docker task to an `exec`/`raw_exec` task.

Other than this, I can let someone from HashiCorp pitch in with ‘Containers on Windows’ specific, not too familiar with those myself! 😄

---

<div class="post-metadata">

**Author:** ![tgross](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/tgross/32/3015_2.png) [@tgross](https://discuss.hashicorp.com/u/tgross)\
**Post date:** [November 8, 2019, 3:42pm UTC](https://discuss.hashicorp.com/t/failed-to-create-container/3786/3 "2019-11-08T15:42:56Z")

</div>

Hi @damonkim-83, can you share the Nomad client node configuration you’re using? I’m working on improving our Windows support story (see [https://github.com/hashicorp/nomad/pull/6220](https://github.com/hashicorp/nomad/pull/6220) and [https://github.com/hashicorp/nomad/pull/6584](https://github.com/hashicorp/nomad/pull/6584)) but it might help if we had some more examples of real-life configs. Alternately, you might want to open a GitHub issue with your configurations.

---

<div class="post-metadata">

**Author:** ![damonkim-83](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/damonkim-83/32/3029_2.png) [@damonkim-83](https://discuss.hashicorp.com/u/damonkim-83)\
**Post date:** [November 11, 2019, 12:38am UTC](https://discuss.hashicorp.com/t/failed-to-create-container/3786/4 "2019-11-11T00:38:27Z")

</div>

client node configuration was just “nomad agent -client -servers=my\_test\_server:4647 -data-dir=c:\nomad”, it was nothing special configured.  
But I solved this problem. reason was that i created linux container in windows base host.  
sorry, problem was just so simple…  
thank you for @tgross replyed.
