Repository navigation
feat(compose): add project listing with compose ls - #5286
Open
Mistyheart wants to merge 2 commits into
Open
Mistyheart wants to merge 2 commits into
Mistyheart wants to merge 2 commits into
Conversation
Author
|
CI follow-up: the cross-platform unit and Go lint jobs passed. Several integration failures occur while fetching test images: Example logs: Could the affected jobs be retried when the download failures have cleared? I have not changed the test infrastructure in this PR. |
Signed-off-by: 石丰毓 <114632971+Mistyheart@users.noreply.github.com>
Signed-off-by: 石丰毓 <114632971+Mistyheart@users.noreply.github.com>
Mistyheart
force-pushed
the
feat/compose-ls
branch
from
November 6, 2026 06:00
e3ea732 to
7fefb63
Compare
Mistyheart
marked this pull request as ready for review
November 6, 2026 06:00
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add
nerdctl compose lsso projects can be listed without locating or loading their Compose files. The command reads Compose labels in the selected containerd namespace, groups container states, and supports--all,--quiet, table/JSON output, and name filters.Fixes #5285. Related to #3867.
Newly created Compose containers record their configuration-file paths. Existing containers without that label remain listable and display
N/A.The branch has been rebased onto current
main. Integration coverage now exercises the command against real containerd containers:COMPOSE_FILEpoints to a missing file.--allincludes created projects, with the expected container counts and configuration paths.exited(1)with--all.Validation:
go test ./pkg/composer ./pkg/labels -count=1passed. The labels package has no test files.go vet ./cmd/nerdctl/compose ./pkg/composer ./pkg/labelspassed on Windows.The local validation is rootful Linux; rootless and FreeBSD validation remain covered by the project's CI. Earlier integration failures involved external image-download limits and a FreeBSD VM download timeout; those failures have not been treated as passing local tests.
AI tools assisted with implementation, tests, and this description.