Support nerdctl network connect and network disconnect
Maintainer thường phản hồi trong vòng 3 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- go
- Lĩnh vực
- cli, networking
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Go
- Star
- 10.5k
- Fork
- 853
- Merge trung bình
- 6 ngày 14 giờ
- Pull request đã merge (30 ngày)
- 38
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của containerd/nerdctl
-
Test and examples: update wordpress images (to silence potential false security alerts)Có thể đã có người làm @Guurdeep đã nhận 20 ngày trước. Đang mởarea/ci documentation priority/low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
containerd/nerdctl#5283 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
`nerdctl kill` shouldn't set `containerd.io/restart.explicitly-stopped` label for non-stop signalsCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
containerd/nerdctl#5171 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
area/project
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 25/100
containerd/nerdctl#5383 · 5 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
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)Có thể đã có người làm @Shubhranshu153 đã nhận hôm nay. Đang mởarea/rootless bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 72/100
containerd/nerdctl#5377 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 3 ngày
-
v2.4.3 planningĐang mởarea/project
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 12/100
containerd/nerdctl#5353 · 2 reaction ·
Maintainer thường phản hồi trong vòng 3 ngày
Tất cả issue của containerd/nerdctl
Issue tương tự
-
P3 tech debt
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
Maintainer thường phản hồi trong vòng 1 ngày
-
kind/feature needs-triage priority/unprioritized
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
NVIDIA/k8s-test-infra#1504 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Area/Infrastructure Aspect/Infra Resources Type/Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
wso2/agent-manager#2717 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
open-policy-agent/opa#9685 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày