Support nerdctl network connect and network disconnect
I maintainer di solito rispondono entro 3 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 45/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- go
- Ambito
- cli, networking
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Go
- Stelle
- 10.5k
- Fork
- 853
- Merge medio
- 6g 14h
- PR unite (30g)
- 38
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di containerd/nerdctl
-
Test and examples: update wordpress images (to silence potential false security alerts)Forse già presa @Guurdeep l’ha presa 20 giorni fa. Apertaarea/ci documentation priority/low
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
containerd/nerdctl#5283 · 2 commenti ·
I maintainer di solito rispondono entro 3 giorni
-
`nerdctl kill` shouldn't set `containerd.io/restart.explicitly-stopped` label for non-stop signalsForse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
containerd/nerdctl#5171 · 3 commenti ·
I maintainer di solito rispondono entro 3 giorni
-
area/project
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 25/100
containerd/nerdctl#5383 · 5 commenti ·
I maintainer di solito rispondono entro 3 giorni
-
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)Forse già presa @Shubhranshu153 l’ha presa oggi. Apertaarea/rootless bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 72/100
containerd/nerdctl#5377 · 1 assegnatario ·
I maintainer di solito rispondono entro 3 giorni
-
v2.4.3 planningApertaarea/project
Difficoltà 5/5 Più di una settimana Idoneità per principianti 12/100
containerd/nerdctl#5353 · 2 reazioni ·
I maintainer di solito rispondono entro 3 giorni
Tutte le issue di containerd/nerdctl
Issue simili
-
P3 tech debt
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
I maintainer di solito rispondono entro 1 giorno
-
kind/feature needs-triage priority/unprioritized
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
NVIDIA/k8s-test-infra#1504 ·
I maintainer di solito rispondono entro 1 giorno
-
Area/Infrastructure Aspect/Infra Resources Type/Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
wso2/agent-manager#2717 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
open-policy-agent/opa#9685 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno