Support nerdctl network connect and network disconnect
Los mantenedores suelen responder en 3 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 45/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- go
- Área
- cli, networking
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Go
- Estrellas
- 10.5k
- Forks
- 853
- Merge medio
- 6 d 14 h
- PR fusionados (30 d)
- 38
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de containerd/nerdctl
-
Test and examples: update wordpress images (to silence potential false security alerts)Posiblemente ocupada @Guurdeep la tomó hace 20 días. Abiertoarea/ci documentation priority/low
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
containerd/nerdctl#5283 · 2 comentarios ·
Los mantenedores suelen responder en 3 días
-
`nerdctl kill` shouldn't set `containerd.io/restart.explicitly-stopped` label for non-stop signalsQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
containerd/nerdctl#5171 · 3 comentarios ·
Los mantenedores suelen responder en 3 días
-
area/project
Dificultad 1/5 Menos de una hora Aptitud para principiantes 25/100
containerd/nerdctl#5383 · 5 comentarios ·
Los mantenedores suelen responder en 3 días
-
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)Posiblemente ocupada @Shubhranshu153 la tomó hoy. Abiertoarea/rootless bug
Dificultad 3/5 1-2 días Aptitud para principiantes 72/100
containerd/nerdctl#5377 · 1 asignado ·
Los mantenedores suelen responder en 3 días
-
v2.4.3 planningAbiertoarea/project
Dificultad 5/5 Más de una semana Aptitud para principiantes 12/100
containerd/nerdctl#5353 · 2 reacciones ·
Los mantenedores suelen responder en 3 días
Todos los issues de containerd/nerdctl
Issues similares
-
P3 tech debt
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
Los mantenedores suelen responder en 1 día
-
kind/feature needs-triage priority/unprioritized
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
NVIDIA/k8s-test-infra#1504 ·
Los mantenedores suelen responder en 1 día
-
Area/Infrastructure Aspect/Infra Resources Type/Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
wso2/agent-manager#2717 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
open-policy-agent/opa#9685 · 1 comentario ·
Los mantenedores suelen responder en 1 día