feat: add docker volume mountpoint disk usage in df#256
Closed
feat: add docker volume mountpoint disk usage in df#256
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds additional disk-usage visibility to the manual GitLab CI df job by reporting du usage for Docker volume mountpoints, helping diagnose runner storage pressure.
Changes:
- Extend the
dfjob to list Docker volume mountpoints and summarize their disk usage. - Sort and show the largest entries from that volume usage output.
Removed 'tail' command from docker volume size listing.
Contributor
There was a problem hiding this comment.
Pull request overview
This PR enhances the GitLab CI manual df diagnostics job by adding per-Docker-volume disk usage reporting (via du on each volume mount), to provide better insight into disk consumption on runners.
Changes:
- Add a step to iterate over all Docker volumes and print their
du -shusage. - Sort the volume usage output for easier inspection.
| - docker context ls | ||
| - docker volume ls | ||
| - docker volume ls --filter=name=buildx_buildkit_builder | ||
| - docker volume ls --quiet | while read vol; do size=$(docker run --rm -v "${vol}:/data" alpine du -sh /data 2>/dev/null | cut -f1); printf "%s\t%s\n" "${size:-?}" "$vol"; done | sort -h |
| - docker context ls | ||
| - docker volume ls | ||
| - docker volume ls --filter=name=buildx_buildkit_builder | ||
| - docker volume ls --quiet | while read vol; do size=$(docker run --rm -v "${vol}:/data" alpine du -sh /data 2>/dev/null | cut -f1); printf "%s\t%s\n" "${size:-?}" "$vol"; done | sort -h |
Contributor
Author
|
Not very useful since hardly any volumes accessible. |
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.
Briefly, what does this PR introduce? Please link to any relevant presentations or discussions.
This PR adds extra output in the (manual)
dfjob on gitlab, but runningduover the volume mount points.What is the urgency of this PR?
What kind of change does this PR introduce?
Please check if any of the following apply