cli icon indicating copy to clipboard operation
cli copied to clipboard

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

Open yuhuyoyo opened this issue 2 years ago • 1 comments

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 - ...

yuhuyoyo avatar Aug 08 '23 21:08 yuhuyoyo

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 avatar Sep 05 '23 15:09 chrmarti