Load module ip6_tables to make docker --ipv6 networks work
メンテナーはふだん 5 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 45/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 停滞
- 技術スタック
- docker, shell
- 領域
- devops, infrastructure
調査の方向性
まず docker-init.sh スクリプトを読み、issue にリンクされている Docker-in-Docker の modprobe.sh のアプローチと起動フローを比較します。作業は、dockerd の起動前に ip6_tables モジュールがトリガーされ、disableIp6tables を必要とせずに Docker の IPv6 ネットワークが機能すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Hi all - moby maintainer here ...
This is related to:
- https://github.com/devcontainers/features/issues/1023
- https://github.com/devcontainers/features/pull/1068
- https://github.com/moby/moby/issues/47895
In moby 27.0 we enabled ip6tables by default. So, to create a Docker network with --ipv6 the ip6_tables kernel module is needed. But, in Codespaces it's not loaded on startup.
In the issue/PR linked above, devcontainers option disableIp6tables was added to work around the problem by adding --ip6tables=false to docker's command line. That'll restore the pre-27.0 behaviour, so docker won't try to create ip6tables rules. But, docker bridge networks won't work properly without those rules (and users have to know to set the option, or they get a complicated-looking error from docker when trying to create a network with --ipv6).
The official Docker-in-Docker image tries to load modules on the host using this unlikely-looking trick ... ip link show ip6_tables (as root). It produces an error about the link not existing but, in a Codespace, it does trigger the module load - then ip6tables works normally. So, if the module is loaded before dockerd starts, --ipv6 networks should just-work.
Would it be possible to add that ip link show trick, probably to the docker-init.sh script? Then, in a lot of cases, there shouldn't be any need to disable docker's use of ip6tables.
- 主要言語
- Shell
- スター
- 1.5k
- フォーク
- 624
- 平均マージ
- 4日 8時間
- マージ済み PR(30日)
- 7
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
devcontainers/features のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
devcontainers/features#1730 ·
メンテナーはふだん 5 日以内に返信
-
Version resolution over unauthenticated git makes feature installs fail hard, with no fallback対応中かも @v-Kaniska244 が 32 日前に担当しました。 オープン
devcontainers/features#1726 · コメント 2 件 · 担当者 1 名 ·
メンテナーはふだん 5 日以内に返信
-
[docker-in-docker] v4 with iptablesSwitchAtRuntime:true default on Ubuntu 26.04 host/devcontainer image activates iptables-legacy instead of iptables-nft再び着手できるかも @v-Kaniska244 が 50 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
devcontainers/features#1709 · リアクション 1 件 · 担当者 1 名 ·
メンテナーはふだん 5 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
devcontainers/features#1707 ·
メンテナーはふだん 5 日以内に返信
-
Parser failure on "localEnv:" in devcontainer-feature.json再び着手できるかも @v-Kaniska244 が 65 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
devcontainers/features#1704 · リアクション 1 件 · 担当者 1 名 ·
メンテナーはふだん 5 日以内に返信
devcontainers/features の issue をすべて見る
似ている issue
-
`check_java_version()` fails when Java path contains spaces (Windows / Git Bash, `C:\Program Files`)オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
aws-samples/appmod-blueprints#972 ·
メンテナーはふだん 1 日以内に返信
-
[Bug]: remote-ls --updates reports up-to-date OCI refs because it ignores deployed Alt-id対応中かも @Joao-kouznetz が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
status:needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信