Skip to content

Support for ${workspaceFolder} in dockerRun/Volumes localPath and containerPath #785

@xstof

Description

@xstof

Issue: Currently, there seems to be no support for ${workspaceFolder} when configuring volume mappings in localPath or containerPath. The error is

docker: Error response from daemon: create ${workspaceFolder}/.devcerts: "${workspaceFolder}/.devcerts" includes invalid characters for a local volume name

Example:

"dockerRun": {
                "volumes": [
                    {
                        "localPath": "${workspaceFolder}/.devcerts",
                        "containerPath": "/.devcerts",
                        "permissions": "rw"
                    }
                ]
            }

Use case: when mapping a drive into an ASP.NET Core container containing certificates for development in order to enable SSL. These certs could be stored in the local workspace and mapped this way, without having to hardcode the full path. (The full path might vary depending on who checks out the source.)

Plugin version: plugin was built from master at commit a45a9a6601cf7b17cc3f2cc2ad16db339ba13a49

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions