-
Notifications
You must be signed in to change notification settings - Fork 387
Closed
Labels
containersIssue in vscode-remote containersIssue in vscode-remote containers
Description
Environment:
- VSCode Version: 1.71.0-insider (user setup)
- Local OS Version: Windows 11
- Remote OS Version: Ubuntu (though any will work)
- Remote Extension/Connection Type: Containers
Steps to Reproduce:
- Create a new folder and open in VS Code
- Add Dev Container configuration files (choosing Ubuntu)
- Create /.devcontainer/devcontainer.env file:
TEST_VAR=/mnt/c/LocalFolder
- Add the following to the devcontainer.json file:
"runArgs": ["--env-file",".devcontainer/devcontainer.env"],
"mounts": [
"source=${containerEnv:TEST_VAR},target=/remotefolder,type=bind,consistency=cached"
]
- Rebuild and Open in Container
- Observe Error
docker: Error response from daemon: invalid mount config for type "bind": invalid mount path: '${containerEnv:TEST_VAR}' mount path must be absolute.
May be related to this issue.
Metadata
Metadata
Assignees
Labels
containersIssue in vscode-remote containersIssue in vscode-remote containers