Skip to content

[Data Science dev containers] Do they work with bind mounts? #2

Closed Locked Answered by benz0li
benz0li asked this question in Q&A
Discussion options

You must be logged in to vote

To work with a bind mount, e.g. modify the devcontainer.json for Python base as follows:

diff --git a/.devcontainer/python-base/devcontainer.json b/.devcontainer/python-base/devcontainer.json
index b31e40c..dae65cc 100644
--- a/.devcontainer/python-base/devcontainer.json
+++ b/.devcontainer/python-base/devcontainer.json
@@ -77,8 +77,8 @@
 
 	// Set 'remoteUser' to 'root' to connect as root instead.
 	"remoteUser": "vscode",
-	"workspaceMount": "source=python-base-home-vscode,target=/home/vscode,type=volume",
-	// "workspaceMount": "source=${localWorkspaceFolder}/.bind-mounts/python-base-home-vscode,target=/home/vscode,type=bind",
+	// "workspaceMount": "source=python-base-home-vscode,targ…

Replies: 0 comments 2 replies

Comment options

benz0li
Jun 27, 2023
Maintainer Author

You must be logged in to vote
0 replies
Comment options

benz0li
Jun 27, 2023
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by benz0li
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
1 participant