Skip to content

${devcontainerId} is not added to the file #7412

Description

Testing #7405

Use following devcontainer.json:

{
	"image": "mcr.microsoft.com/devcontainers/base:0-focal",
	"features": {
		"./test-feature": "latest"
	},
	"postCreateCommand": "echo ${devcontainerId} >~/devcontainerId.txt",
	"containerEnv": {
		"CONTAINER_ENV_DEVCONTAINER_ID": "${devcontainerId}"
	},
	"remoteEnv": {
		"REMOTE_ENV_DEVCONTAINER_ID": "${devcontainerId}"
	}
}

${devcontainerId} variable is not replaced and copied into the devcontainerId.txt file in the postCreateCommand

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugIssue identified by VS Code Team member as probable bugcontainersIssue in vscode-remote containersverifiedVerification succeeded

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions