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

Error response from daemon: invalid mount config for type "bind": bind source path does not exist #613

Open
yuhuyoyo opened this issue Aug 8, 2023 · 1 comment
Assignees
Labels
info-needed Issue requires more information from poster

Comments

@yuhuyoyo
Copy link

yuhuyoyo commented Aug 8, 2023

I'm running devcontainer CLI in a docker container which might not be the most common use case. I mounted the workspace-folder to the container.
running devcontainer up causes error bind source path does not exist.

[2023-08-08T21:36:04.521Z] docker: Error response from daemon: invalid mount config for type "bind": bind source path does not exist: /app.
See 'docker run --help'.
Error: Command failed: docker run --sig-proxy=false -a STDOUT -a STDERR --mount type=bind,source=/app,target=/workspaces/app -l devcontainer.local_folder=/data -
...

@chrmarti
Copy link
Contributor

chrmarti commented Sep 5, 2023

I assume you are using the local Docker daemon? The source path of bind mounts refer to the filesystem the Docker daemon runs with, not the container's filesystem. I'm not sure the devcontainer CLI would have a way to work around this.

@chrmarti chrmarti self-assigned this Sep 5, 2023
@chrmarti chrmarti added the info-needed Issue requires more information from poster label Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

2 participants