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
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