-
Notifications
You must be signed in to change notification settings - Fork 220
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
Target not overwritten when using features #120
Comments
PR #121 up for review. |
Fix is available in Dev Containers CLI 0.10.1, 0.12.0 and Remote-Containers 0.245.1 and 0.248.0-pre-release. |
I'm unable to repro the original issue on Windows with older Remote-Containers versions. What are some verification steps for this issue? |
@rzhao271 Thanks for the ping, the following show repro and verify it: With the following with 0.247.0-pre-release there is no devcontainer.json: {
"build": {
"dockerfile": "Dockerfile",
"target": "vscode_dev"
},
"features": {
"github-cli": "latest"
}
} Dockerfile: FROM ubuntu:latest AS vscode_dev |
Reported by @sajaysurya in microsoft/vscode-dev-containers#1519:
Currently the docker-from-docker feature doesn't support multistage Dockerfiles
Relates to: Remote - Containers
It works well with the following Dockerfile
and the following .devcontainer.json file
It actually works with a named stage in the Dockerfile like
as long as the build target in not explicitly mentioned in the .devcontainer.json file
The text was updated successfully, but these errors were encountered: