Repository navigation
fix(server): keep Docker leftovers per installation and clean up after disabled ingress - #410
Open
PiquelChips wants to merge 4 commits into
Open
PiquelChips wants to merge 4 commits into
PiquelChips wants to merge 4 commits into
Conversation
Contributor
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 45 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
PiquelChips
marked this pull request as ready for review
November 10, 2026 15:56
PiquelChips
force-pushed
the
g13/docker-leftovers
branch
3 times, most recently
from
November 12, 2026 21:28
53deac7 to
672bbd9
Compare
PiquelChips
force-pushed
the
g13/docker-leftovers
branch
from
November 13, 2026 12:54
672bbd9 to
8a4e750
Compare
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.
piqueld left Docker leftovers behind, or cleaned up other installations' resources on a shared Docker Engine:
docker image prunedeleted the ones restore and automatic rollback rely on.What changes:
stop_gatewayinspects the edge network, checks it is this installation's, and deletes it in aningress_remove_networkjournal action. This is best-effort cleanup: a failure, or a network another installation owns, is journaled or logged as a warning, and ingress still disables and withdraws its routes and DNS records. Re-enabling ingress creates it again.piqueld-health-probe-<hash of instance ID and probe binary>(instance IDs are too long to spell out within Swarm's name limit) and labelled withio.piqueld.instance. The runtime policy expects the service's own installation's probe. Cleanup removes only this installation's stale probe configs, plus unlabelled ones older daemons published, when no service mounts them.piqueld-build/<instance ID>:<image ID hex>.docker image pruneleaves tagged images. Cleanup still removes them by ID without force, which drops their single tag. Images built before the upgrade stay untagged, sodocker image prunecan still remove them untilkeep_deploymentsnewer deployments replace them; the configuration docs say so.docker image prune --allstill removes unused builds, and the configuration docs now say so.Proof:
just docker-testpasses against an isolated engine (17 integration plus 4 real-Docker ingress tests). The integration suite now asserts that a build carries its tag, and that probe pruning keeps another installation's config while removing this installation's stale one and an unlabelled legacy one. A fake-engine test checks that disabled ingress deletes only its own edge network. The probe policy unit test rejects another installation's probe.Note
Written by Claude Opus 5.5 in Claude Code and reviewed by Claude Opus 5.5 (via T3 Code)
🤖 Generated with Claude Code