Running src inside a devcontainer

Some organizations prefer to run the src command inside a devcontainer to minimize setup for people developing batch changes. This creates a docker-in-docker scenario, so users may see errors in the following format:

docker: Error response from daemon: invalid mount config for type "bind": bind source path does not exist: /home/morgan.gautho/.cache/sourcegraph/batch/3858953300.
       See 'docker run --help'.
 
  Command failed with exit code 125.

In order to get around this, users can mount

-v /tmp/sourcegraph/docker:/tmp/sourcegraph/docker 

from host machine, and run

src -tmp /tmp/sourcegraph/docker -cache /tmp/sourcegraph/docker
Was this article helpful?
0 out of 0 found this helpful

Articles in this section