-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to use absolute host volume with Windows/Docker #3931
Comments
Seems likely the bug lies in this line of code splitting on the |
Within a Windows 2016 Docker Host machine, when I specify a Volume within the Nomad job, it errors out no matter what I try in the specification. So my question is, what is the correct way to specify a volume in Nomad for Windows? Specifically, here's what I'm successfully able to do with a straight-up Docker run command (this works perfectly fine): However when I setup a Nomad job script this way it fails: It fails with this error: (most of the back-slashes in the above are really four back-slashes even though it is only displaying two) Notice that part, "invalid bind mount spec" - what is the correct way to specify this in Windows? Thanks, |
Hi @schmichael I am facing the exact same issue ..
And then since it is always looking for the volume to be mounted in the temp folder user can basically never provide the correct path. Thanks
|
We have identified the root cause of this issue and it is a bit more complicated than suspected when we initially commented on the GH issue. There is commentary on the moby project that discusses the issue with using the However, this fix is more complicated than string parsing and requires new unit testing and an implementation that honors the current configuration behavior. Because of that, it requires significant changes to the docker driver. #4761 was submitted for Engineering review; however, the PR is currently blocked by a task driver refactor that is a key component of Nomad v0.9.0. Once this refactor is complete, we will then be able to refactor the existing PR to incorporate these changes into the new version of the Docker driver. |
Still got the problem in nomad 9.2.0 and windows 10 enterprise with docker windows containers. |
@antoine-choimet-cbp The docker volumes configuration updates here should mean that Could you provide logs and a repro case and we can take a look soon? Thanks! |
@endocrimes Hello, here the logs :
It's from the example to run the cluster with the redis use case, here the server.hcl
And the example.nomad from nomad job init for the versions : |
This type of mapping is working in nomad v1.4.3 |
Thanks @fairmonk. I think this is safe to close then. |
Nomad version
Nomad v0.7.1 (0b295d3)
Operating system and Environment details
Windows Server Core 2016/Windows 10
Issue
I am trying to use an absolute path for a volume on the host but it looks like nomad is treating it as relative. I've tried various permutations for the volume string now but none of them have worked.
I am trying to achieve the equivalent of:
Reproduction steps
Dockerfile:
Job:
Nomad Server logs (if appropriate)
The text was updated successfully, but these errors were encountered: