feat(scanner): add Docker disk image scanning (scan only) - #32
Merged
Conversation
Report the Docker Desktop VM disk image (Docker.raw) as a protected artifact. It is a stat-based scanner: a fixed home-relative path, scope- gated by the scan root like xcode/global. The image is marked Protected so the cleaner refuses to path-delete it — all Docker state lives in that one sparse file. Sizing runs through the shared sparse-aware Measure, so a 460G-declared image reports its real ~8G on-disk usage (Size) alongside the declared size (ApparentSize) with no Docker-specific code. Reclaiming space via `docker system prune` is destructive and stays deferred behind a future --include-destructive gate; this change reports the image and its footprint only, it does not wire up prune. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013SX3vRs78zFYA2kTRZAtg6
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.
Refs #17 (scan track only —
docker system prunewiring deferred)요약
Docker Desktop VM 디스크 이미지(
Docker.raw)를 protected 아티팩트로 스캔한다. stat 기반 스캐너(xcode/global과 동형: 고정 home-relative 경로 + scan root scope 게이트).~/Library/Containers/com.docker.docker/Data/vms/0/data/Docker.raw(기본 경로만; 비기본 data root 미추적)Protected: true로 cleaner가 path 삭제 거부.Measure로 460G 선언 이미지가 실제 점유(~8G)로 산출. Docker 전용 sizing 코드 없음.스코프 결정 (이슈와의 차이)
이슈 완료조건은 "vendor prune 연동"까지지만,
docker system prune은 파괴적(이미지·볼륨·빌드캐시 삭제)이고 프로젝트 CLAUDE.md가 이를--include-destructive게이트 뒤로 미루도록 명시한다. 그 게이트는 현재 없음.게이트는 Docker 전용이 아닌 크로스커팅 기능(CLI 플래그 + VendorCleanup destructive 필드 + 필터 + 확인 UX)이라 별도 트랙으로 분리했다. 이 PR은 스캔·protected·실측 트랙만 완결하고, prune 연동은 게이트 신설 작업으로 남긴다. 이슈 17은 close하지 않음.
검증
Docker.rawdisk 8.6G / apparent 494G, safety=protected, protected=true문서
docs/ecosystems.md: Supported 표implemented (scan only; prune deferred), Docker 섹션 신설(protected·sparse·prune 지연 명시)🤖 Generated with Claude Code