-
Notifications
You must be signed in to change notification settings - Fork 317
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
Can't Bind Mount Host Folder Using docker-outside-of-docker #919
Comments
I am having this problem as well. |
This just started happening to us as well. It seems the dev container has lost a mapping somewhere and host paths are no longer valid. If I hard code the volume path that was in the env var then it won't work in the dev container but will work on the wsl host.
As a workaround i changed the {
...
"containerEnv": {
"LOCAL_WORKSPACE_FOLDER": "\\\\wsl.localhost\\${localEnv:WSL_DISTRO_NAME}\\${localWorkspaceFolder}"
}
}
|
It worked for me has an workaround. thanks! |
Thanks for the details. @gauravsaini04 Can you help investigate this issue? Thanks! |
@chrmarti Any thoughts on this issue? From microsoft/vscode-remote-release#3588 (comment) it seemed like it wasn't possible before. However, moby/moby#32582 seems to have merged-in recently. Do we need any changes on our end? |
This works for me with Docker Desktop 4.30 (Docker Engine 26.1.1). Variations I have tried (all worked):
|
Hi, I created a container from inside a dev container using the docker-outside-of-docker feature. I mapped an bind mount to the host repo folder. However, the files don't appear in the bound folder inside the container.
Minimum configuration to reproduce:
.devcontainer/devcontainer.json
STEPS:
docker run -it --rm -v ${LOCAL_WORKSPACE_FOLDER}:/workspace debian bash
BEHAVIOR:
EXPECTED BEHAVIOR:
ADDITIONAL INFO:
The text was updated successfully, but these errors were encountered: