Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 328786a

Browse files
committed
disable local directory mounting
1 parent 16b7d39 commit 328786a

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,13 @@
2020

2121
// it can probably be done in a more efficient way
2222
// if no other use is found for this mount, it should be removed
23-
"initializeCommand": ".devcontainer/scripts/create-swanky-shared.sh ${localEnv:HOME}${localEnv:USERPROFILE}/swanky",
2423

25-
"mounts": [
26-
"source=${localEnv:HOME}${localEnv:USERPROFILE}/swanky,target=/host-home,type=bind,consistency=cached"
27-
],
24+
// Creates a `swanky` directory in host home and mounts it to the container's /host-home
25+
// Uncomment if used locally, as it doesn't work in cloud environment (like cloudspaces)
26+
//"initializeCommand": ".devcontainer/scripts/create-swanky-shared.sh ${localEnv:HOME}${localEnv:USERPROFILE}/swanky",
27+
// "mounts": [
28+
// "source=${localEnv:HOME}${localEnv:USERPROFILE}/swanky,target=/host-home,type=bind,consistency=cached"
29+
// ],
2830

2931
// Use 'forwardPorts' to make a list of ports inside the container available locally.
3032
// "forwardPorts": [],

0 commit comments

Comments
 (0)