Skip to content
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

Remote Linux Docker from Windows DevPod : mount path must be absolute. #834

Closed
mikecarr opened this issue Dec 6, 2023 · 4 comments · Fixed by #848
Closed

Remote Linux Docker from Windows DevPod : mount path must be absolute. #834

mikecarr opened this issue Dec 6, 2023 · 4 comments · Fixed by #848
Labels

Comments

@mikecarr
Copy link

mikecarr commented Dec 6, 2023

What happened?
Launching a devcontainer from Windows UI to remote Desktop server returns error: info docker: Error response from daemon: invalid mount config for type "bind": invalid mount path: 'C:/Users/MCarr1/.devpod/agent/contexts/default/workspaces/vscode-remote-try-go/content' mount path must be absolute.
(see attached debug log)
devpod-windows-absolute-path.log

What did you expect to happen instead?
I expected the workspace to be deployed to the remote Docker host

How can we reproduce the bug? (as minimally and precisely as possible)

  • Setup Docker Provider with remote host (or port that is port forwarded to Docker host) i.e. localhost:2375
  • port forward localhost 2375 to remote Docker host
    ssh -L2375:localhost:2375 remote-dockerhost.com
  • Create any workspace with Docker provider

Local Environment:

  • DevPod Version: 0.4.2
  • Operating System: Windows
  • ARCH of the OS: AMD64

DevPod Provider:

  • Local/remote provider: docker | ssh

Anything else we need to know?
The host that Devpod is running is Windows, the host where Docker is running is linux

@mikecarr
Copy link
Author

mikecarr commented Dec 6, 2023

Attaching command line from Linux debug log which results in same error

devpod-linux-absolute-path.log

@mikecarr
Copy link
Author

mikecarr commented Dec 6, 2023

The SSH provider does what I want

@89luca89
Copy link
Contributor

Hi @mikecarr this probably could be linked to the #808 issue, probably same path conversion problem

@samhodgkinson
Copy link

I know this is an old issue, but I'm seeing it from Windows 11 to Ubuntu 24.10. Was there a resolution to this or suggestion on how this is resolved ?

Version 0.5.18

while sleep 1 & wait $!; do :; done -
[23:47:57] info docker: Error response from daemon: invalid mount config for type "bind": invalid mount path: 'C:/Git/SSH/Datadog/Datadog' mount path must be absolute.
[23:47:57] info See 'docker run --help'.
[23:47:57] info exit status 125
[23:47:57] info start dev container

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants