fix(docker): drop obsolete enableNonRootDocker option for docker-in-d…#426
Open
V-Subhankar-infy wants to merge 1 commit into
Open
fix(docker): drop obsolete enableNonRootDocker option for docker-in-d…#426V-Subhankar-infy wants to merge 1 commit into
V-Subhankar-infy wants to merge 1 commit into
Conversation
…ocker and k8s-minikube
There was a problem hiding this comment.
Pull request overview
This PR updates the Docker-in-Docker–based templates to remove the now-obsolete enableNonRootDocker template option and adjusts the Kubernetes/Helm/Minikube test script to use a Helm CLI invocation compatible with current Helm versions.
Changes:
- Remove
enableNonRootDockerfrom the Docker in Docker template’s options, generated.devcontainer.json, and README. - Remove
enableNonRootDockerfrom the Kubernetes - Minikube-in-Docker template’s.devcontainer.json. - Update the Helm smoke test to use
helm version --shortand bump template patch versions.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| test/kubernetes-helm-minikube/test.sh | Updates Helm version check to a modern, compatible CLI flag set. |
| src/kubernetes-helm-minikube/devcontainer-template.json | Bumps template patch version to reflect the config change. |
| src/kubernetes-helm-minikube/.devcontainer/devcontainer.json | Drops the obsolete feature option from the Docker-in-Docker feature config. |
| src/docker-in-docker/README.md | Removes the obsolete option from documented template options. |
| src/docker-in-docker/devcontainer-template.json | Removes the obsolete option from the template’s declared options and bumps patch version. |
| src/docker-in-docker/.devcontainer/devcontainer.json | Stops passing the removed template option into the Docker-in-Docker feature. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Title
Remove stale Docker in Docker option wiring and update Helm smoke test compatibility
Problem
A stale template option,
enableNonRootDocker, was still being surfaced and forwarded in places that use the Docker in Docker feature. The current Docker in Docker feature option set does not include this option.The Same was reported at devcontainers/features#1618
This mismatch caused two issues:
During validation, one smoke test also failed for an unrelated compatibility reason: the Helm command in the Kubernetes Minikube test used
helm version --client, which is not supported by current Helm releases.Fix Summary
This change removes stale
enableNonRootDockerusage only where it is tied to Docker in Docker, keeps valid usage for Docker outside of Docker intact, and updates one test command for Helm CLI compatibility.Specifically:
enableNonRootDockerfrom the Docker in Docker template option list.enableNonRootDockerto the Docker in Docker feature in template devcontainer configs.helm version --short.Tests
Smoke tests were run for both affected templates using the same local harness flow in both the affected repos- docker-in-docker & kubernetes-helm-minikube.
Impact
This change improves correctness and clarity of template configuration.
User impact:
enableNonRootDockerusage for Docker outside of Docker remains unchanged.