Skip to content
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

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

Closed
sandy081 opened this issue Oct 25, 2022 · 1 comment · Fixed by devcontainers/cli#247
Closed

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

sandy081 opened this issue Oct 25, 2022 · 1 comment · Fixed by devcontainers/cli#247
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug containers Issue in vscode-remote containers verified Verification succeeded
Milestone

Comments

@sandy081
Copy link
Member

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

@sandy081
Copy link
Member Author

@chrmarti May I know if the fix is available in latest release so that I can verify?

@rzhao271 rzhao271 added the verified Verification succeeded label Oct 27, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Dec 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug containers Issue in vscode-remote containers verified Verification succeeded
Projects
None yet
3 participants