Repository navigation
Silence missing /proc/modules errors in docker-in-docker - #1779
Open
Kaniska (v-Kaniska244) wants to merge 5 commits into
Open
Kaniska (v-Kaniska244) wants to merge 5 commits into
Kaniska (v-Kaniska244) wants to merge 5 commits into
Conversation
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
/proc/modules errors in docker-in-docker
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the change to suppress the misleading Docker-in-Docker startup diagnostic.
No open issues 🎉
What changed in this PR
This PR addresses #1770 by suppressing the misleading missing /proc/modules diagnostic during Docker-in-Docker startup, without changing iptables backend selection.
Changes:
- Redirect the runtime module probe’s stderr to
/dev/null. - Add a regression assertion that the generated init script contains the quiet probe.
- Bump the feature patch version from
4.1.3to4.1.4.
| File | Description |
|---|---|
test/docker-in-docker/docker_iptables_switch_at_runtime.sh |
Assert the generated script includes stderr suppression. |
src/docker-in-docker/install.sh |
Silence the module probe while preserving fallback logic. |
src/docker-in-docker/devcontainer-feature.json |
Bump the feature version to 4.1.4. |
Review effort: Balanced
Kaniska (v-Kaniska244)
marked this pull request as ready for review
November 23, 2026 14:28
This branch has not been deployed
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.
Summary
Suppress the misleading
grep: /proc/modules: No such file or directorydiagnostic emitted bydocker-init.shon kernels without loadable-module support. The existing iptables backend-selection fallback remains unchanged.Changes
/dev/nullfor the/proc/modulesprobe used during runtime iptables selection.This accommodates GitHub-hosted Ubuntu 26.04 runners, where
iptables-nftis the default.4.1.3to4.1.4.Validation
The tests verify that the init script is generated, the runtime iptables selection block is present, the selected alternative is configured, and
iptables -Lsucceeds.Fixes #1770