-
Notifications
You must be signed in to change notification settings - Fork 296
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
Option to ignore default features in devcontainer recovery container #10115
Comments
That is indeed an oversight. We shouldn't install the default features in the recovery container. |
Repro steps:
"dev.containers.defaultFeatures": {
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
}
Removing the Validate: When entering a recovery container, the line in the logs containing |
Thanks for the report! This should be fixed in the next pre-release of the extension (i'll keep this issue open until we publish that) |
This change has shipped in pre-release |
In the recovery container, I see --additional-features passed in the logs, but those logs seem to reflect the failed container build attempt. The recovery container loads properly. |
Sorry it took a bit to get back to it. I verified it with the v0.383.0 release. Including a default feature that uses apt to install a package no longer breaks the recovery container |
Appreciate you giving it a go, thanks! |
When a devcontainer fails to build VSCode will offer to let you open it in a recovery container to try and fix the devcontainer.json. It will still install the default features that are set in the devcontainers extensions settings, however sometimes the issue is with a one of the default features, or the feature relies on something like
apt-get
but the recovery container is based on Alpine so that command is not available. To get into the recovery container then you have to open a new window, because you can't access settings in the broken window, and remove or comment out the problem feature. Fix the issue then reenable the problem feature.Kind of like safe mode for Windows, the recovery container should not load anymore than is necessary to open the editor. Or at least have that as an option.
The text was updated successfully, but these errors were encountered: