1414
1515 // Mount go mod cache
1616 " -v" , " devcontainer-cli-gomodcache:/go/pkg" ,
17- // Keep command history
18- " -v" , " devcontainer-cli-bashhistory:/root/commandhistory" ,
19- // Mount docker socket for docker builds
20- " -v" , " /var/run/docker.sock:/var/run/docker.sock" ,
2117 // Use host network
2218 " --network=host" ,
23- // Mount azure, git and docker config
24- " -v" , " ${env:HOME}${env:USERPROFILE}/.azure:/root/.azure"
2519 ],
2620
2721 // Set *default* container specific settings.json values on container create.
6357 // Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root.
6458 "remoteUser" : " vscode" ,
6559 "mounts" : [
60+ // Keep command history
61+ " source=devcontainer-cli-bashhistory,target=/home/vscode/commandhistory" ,
6662 // Mounts the .config/gh host folder into the dev container to pick up host gh CLI login details
6763 // NOTE that mounting directly to ~/.config/gh makes ~/.config only root-writable
6864 // Instead monut to another location and symlink in Dockerfile
6965 " type=bind,source=${env:HOME}${env:USERPROFILE}/.config/gh,target=/config/gh" ,
66+ // Mounts the .azure host folder into the dev container to pick up host az CLI login details
67+ " type=bind,source=${env:HOME}${env:USERPROFILE}/.azure,target=/home/vscode/.azure" ,
68+ // Mount host docker socket
69+ " type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock" ,
7070 ],
7171}
0 commit comments