CliContainerEngine: verify create/start -a -i and the inspect "no such" wording on Podman and nerdctl

Aperta
#232 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
67/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
csharp, docker
Ambito
cli, testing

Direzione di ricerca

Start by reading CliContainerEngine and the ContainerIntegration tests under tests/OKF4net.Tests. Run dotnet test tests/OKF4net.Tests --filter Category=ContainerIntegration with CliContainerEngine("podman") and CliContainerEngine("nerdctl"). Check whether create/start flags, exit-code and stream handling, inspect's missing-container wording, and rm -f behavior match the assumptions; document or fix any differences.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Follow-up to #110 (fixed by #231 and #227).

CliContainerEngine was only ever run against Docker 29.4.1 (Windows). Two assumptions are unverified on Podman and nerdctl, which the class is documented to cover:

  1. A run is create then start -a -i: that start -a -i propagates the container's exit code and carries stdin/stdout/stderr, and that create accepts the same isolation flags (--rm, --read-only, --tmpfs, --cap-drop, --security-opt, --memory, --cpus, --pids-limit).
  2. Teardown counts a container as absent only when inspect exits non-zero and stderr contains "no such" (case-insensitive). If an engine words it differently, teardown simply runs to the end of its budget instead of returning early (never a leak, only slower).

Also unverified: their rm -f exit code for an unknown name.

To close: run dotnet test tests/OKF4net.Tests --filter Category=ContainerIntegration with a CliContainerEngine("podman") / ("nerdctl") and fix or document whatever differs.

Lingua principale
C#
Stelle
4
Fork
1
Merge medio
1g 4h
PR unite (30g)
32

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di jchable/okf4net

Tutte le issue di jchable/okf4net

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.