

For example, this will bind mount ~ ( $HOME) on macOS/Linux and the user's folder ( %USERPROFILE%) on Windows and a sub-folder in the workspace to a different location: "mounts" : You can also reference local environment variables or the local path of the workspace. You can add a volume bound to any local folder by using the following appropriate steps, based on what you reference in devcontainer.json:ĭockerfile or image: Add the following to the mounts property (VS Code 1.41+) in this same file: "mounts" : See developing inside a container on a remote Docker host for information on mounting remote folders in this scenario. Note: Mounting the local file system is not supported in GitHub Codespaces.
