-
Notifications
You must be signed in to change notification settings - Fork 394
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mount path based on env var #1132
Comments
Yes, you can use an environment variable in your eg.
|
This gives me an error
|
Mounts and runArgs do not resolve the environment variables, so it seems there is no way to have a dynamic mount. There is a similar issue here microsoft/vscode-remote-release#3972 @samruddhikhandale Is there anything else I can try? I even get the same error when I simplify it like this
Error response from daemon: ${AZURE_PATH} is not an absolute path. |
The only way I've been able to get dynamic mount paths is by having my .bashrc run the script bash.rc
.devcontainer/devcontainer.json
|
I am trying to mount ~/.azure into my devcontainer. The issue is that this directory is a symlink to my Windows path. I can get the mount to work if I mount both paths, the problem is that I don't want to commit my Windows path into git because it wont be the same for others. For others, it may not even be a symlink. Is it possible to mount my symlink using an environment variable if the user has it set?
The text was updated successfully, but these errors were encountered: