Repository navigation
Conversation
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.
downstops and removes selected containers in reverse dependency order through Container 1.7.1 native APIs. It decodes and validatesstop_signal, passes it to native stop options, and appliesstop_grace_periodor--timeout. Stop and delete failures propagate; failed stops leave the container and extra_hosts bind source intact.upnow creates project-scoped networks, including the implicit default network, and stamps newly created networks and volumes with management and project labels. Creation, attachment, and teardown share name resolution, including explicit and legacy external names. Null named-volume definitions and destination-only anonymous volumes are created through the native API.downremoves owned networks.-v/--volumesalso removes owned named and anonymous volumes. Cleanup preserves external resources, Apple’s built-in default network, resources attached to surviving containers, and resources without proven ownership. Legacy resources are diagnosed and preserved. No bind directories are deleted, and no prune or shell fallback is used for teardown or resource creation. Lookup and deletion failures propagate rather than being treated as absence.--remove-orphansrequires matching project labels and a service absent from the complete Compose file. Configured inactive services remain protected. Profile selection follows the documented Compose rules.Validation: 12 focused static tests and all 5 native ComposeDownTests passed. Runtime coverage includes signal delivery and timeout, reverse dependency order, ownership and legacy preservation, external-volume preservation, anonymous-volume deletion, and resources retained for an inactive surviving service under
--remove-orphans --volumes. A final focused rerun passed and verified the explicit anonymous-volume assertion and both volume flag spellings.git diff --checkpasses. Tests reused the existing dependency/build cache under shared build/runtime locks; no logs are committed.Limits:
--rmiand long-form volume mounts remain unsupported. Custom networks require macOS 26 or later. Network driver/options, attachable, and IPv6 settings remain unsupported. Apple’s runtime rejected attaching one ext4 volume to two running VMs, so preservation coverage uses a volume attached to the surviving VM. An initial fixed-port fixture collided with an existing host listener; its port requirement was removed, and only that failed test project's resources were cleaned up.