Support nerdctl network connect and network disconnect
メンテナーはふだん 3 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 45/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- go
- 領域
- cli, networking
調査の方向性
Read docs/command-reference.md, #3867, and applyNetworkSettings in pkg/ocihook to understand current network setup and stored results. Trace how container labels and the hosts store are updated, then check how CNI add and del operate in a running container's network namespace. Done means nerdctl network connect and disconnect work for rootful containers and network membership persists across restart; the issue asks for feedback on the approach, so confirm the intended scope before implementing.
索引モデルが issue の本文から書いたものです。
説明
What is the problem you're trying to solve
docker network connect and docker network disconnect are on the unimplemented list in docs/command-reference.md and in #3867. A running container can only get its networks at nerdctl run time. Adding or removing one later means recreating the container, which is a problem for stateful containers and for tooling that expects Docker's behavior.
Describe the solution you'd like
nerdctl network connect NETWORK CONTAINER and nerdctl network disconnect NETWORK CONTAINER for a running container, starting with rootful mode.
What I understand of the current code, please correct me:
- The OCI hook runs one CNI setup for the whole list of networks when the container starts (
applyNetworkSettingsinpkg/ocihook), and records the results in the hosts store. - So connect would need to run a CNI add for one network on the running container's netns, give it the next free
ethN, and update the hosts store so DNS and/etc/hostsfor the other containers see it. - Disconnect is the reverse, with a CNI del.
- The set of networks has to be written back to the container's labels, so a restart sets the same networks up again.
I'd start with --alias and leave --ip and --ip6 for later. Is this a direction you want, and is there a reason it hasn't been done that I'm missing, such as how the interface names are chosen or the rootless case?
Additional context
I haven't started on it, and I wanted to check the approach before writing code.
- 主要言語
- Go
- スター
- 10.5k
- フォーク
- 853
- 平均マージ
- 6日 14時間
- マージ済み PR(30日)
- 38
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
containerd/nerdctl のほかの issue
-
Test and examples: update wordpress images (to silence potential false security alerts)対応中かも @Guurdeep が 20 日前に担当しました。 オープンarea/ci documentation priority/low
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
containerd/nerdctl#5283 · コメント 2 件 ·
メンテナーはふだん 3 日以内に返信
-
`nerdctl kill` shouldn't set `containerd.io/restart.explicitly-stopped` label for non-stop signals再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
containerd/nerdctl#5171 · コメント 3 件 ·
メンテナーはふだん 3 日以内に返信
-
area/project
難易度 1/5 1時間未満 初心者へのやさしさ 25/100
containerd/nerdctl#5383 · コメント 5 件 ·
メンテナーはふだん 3 日以内に返信
-
Restart-policy containers loop on "unable to apply apparmor profile" after reboot until the creating user logs in (OCI hook inherits the client's XDG_RUNTIME_DIR)対応中かも @Shubhranshu153 が今日担当しました。 オープンarea/rootless bug
難易度 3/5 1〜2日 初心者へのやさしさ 72/100
containerd/nerdctl#5377 · 担当者 1 名 ·
メンテナーはふだん 3 日以内に返信
-
v2.4.3 planningオープンarea/project
難易度 5/5 1週間以上 初心者へのやさしさ 12/100
containerd/nerdctl#5353 · リアクション 2 件 ·
メンテナーはふだん 3 日以内に返信
containerd/nerdctl の issue をすべて見る
似ている issue
-
P3 tech debt
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
メンテナーはふだん 1 日以内に返信
-
kind/feature needs-triage priority/unprioritized
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
NVIDIA/k8s-test-infra#1504 ·
メンテナーはふだん 1 日以内に返信
-
Area/Infrastructure Aspect/Infra Resources Type/Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
wso2/agent-manager#2717 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
open-policy-agent/opa#9685 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信