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
Container volumes - ContainerPath other than C: drive? #334
Comments
You should be able to get it work with below command: docker run -it --volume=d:\new-data-volume:c:\datavolume windowsservercore cmd |
@rohitjaini Well, that's not what I want. |
We support mapping a whole second drive letter, but for now, not portions of it. So you can say docker run -it -v d: windowsservercore cmd and get a volume as drive D: in the container. But you can't write |
@jstarks Thank you for the explanation |
Thanks @jstarks - I've added this to documentation. |
* Adding version compatibility page * Update version-compatibility.md Adding information to docker swarm. * Update version-compatibility.md * Starting Docker Swarm workaround * Adding example swarm failure * reorder docker swarm to put easiest fix first * update todo * Update version-compatibility.md Adding details about swarm modifications to run explicitly in hyper-v isolation. * Update version-compatibility.md Adding some clarity for inspecting a container. * Update version-compatibility.md * Added placeholder & link for service constraints * Adding service constraint example * Update version-compatibility.md * Starting doc for Linux containers * Adding additional link to Docker EE preview * Fix markdown around video * Update INotify * Starting k8s info * Starting kubernetes node labels * Updating k8s samples * Finishing k8s label example * Adding Hyper-V isolation for Kubernetes * Fixing headings and removing a bad section * Adding link to winspector
@jstarks, @neilpeterson, @scooley, could you please clarify how non C drive volume mapping should work? D:\> mkdir folder
D:\> docker run --rm -it -v D: microsoft/nanoserver:1709 cmd /c "dir D:"
Directory of D:\
05/11/2018 11:29 AM <DIR> .
05/11/2018 11:29 AM <DIR> ..
0 File(s) 0 bytes
2 Dir(s) 94,127,910,912 bytes free When starting powershell in the container it fails with a following error: Attempting to perform the InitializeDefaultDrives operation on the 'FileSystem' provider failed.
dir : Cannot find drive. A drive with the name 'D' does not exist.
At line:1 char:1
+ dir D:
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (D:String) [Get-ChildItem], DriveNotFoundException
+ FullyQualifiedErrorId : DriveNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand So it looks like it just creates an empty drive
|
When a user specifies `builds_dir=F:\\builds` inside of `config.toml` file, and run the `docker-windows` executor the user would get an error like below: ``` Error response from daemon: The parameter is incorrect. ``` As explained in MicrosoftDocs/Virtualization-Documentation#334 Docker volumes apart from `C:` are not supported.
Hi folks, developer from the future here, digging deep into the past for an issue I'm currently having while trying to run a WS2019 container. It's taken me a few hours of detective work to find this issue and the corresponding doc fix that was made in response to it - unfortunately that fix seems to have been lost in translation some time in the last 4 years, because the current persistent volumes doc at https://docs.microsoft.com/en-us/virtualization/windowscontainers/manage-containers/persistent-storage doesn't mention this limitation. My experience in practice, however, shows that it still exists. @jstarks - would you happen to know if there has been any progress made on this? I'm guessing it never quite had enough priority to be addressed, which is fine, but I'd been interested to find out if it's ever been looked at since. At any rate, I will aim to submit a PR here that adds in a mention of the limitation sometime soon, work permitting. |
Is it possible to have other drives in container than C:?
If I run:
I get and error:
Of course
works.
The text was updated successfully, but these errors were encountered: