-
Notifications
You must be signed in to change notification settings - Fork 819
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clean up dangling images #4915
Clean up dangling images #4915
Conversation
Welcome @B1F030! It looks like this is your first PR to karmada-io/karmada 🎉 |
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #4915 +/- ##
=======================================
Coverage 53.18% 53.18%
=======================================
Files 252 252
Lines 20510 20510
=======================================
Hits 10909 10909
Misses 8882 8882
Partials 719 719
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
The result of this PR change are reflected here.
If we try this on normal environment, this change could clean up a lot of storage space(may be zero if you have the same image tagged). |
I tried on my side, it shows that reclaimed 0B space, with a bunch of images deleted, and I don't know why :) -bash-5.0# docker image prune -f
Deleted Images:
deleted: sha256:763d25d3ed94215c35e626c360ae9ce208f7e3770c0ec23fd9c3772b8b7d5821
deleted: sha256:871a9858500a5efb05515c12f72db5ecce35a53b86f7379f8b7765f8a4c369a2
deleted: sha256:b604619e7de83135b7a746deffafd2cbdc8d318f9ef2e0a1c06c45c00d28ab1b
deleted: sha256:8f63671f3e0a248d11f6832d80ddd94c723693bc7d346f9fd6d8364b39717d9c
deleted: sha256:c50dbb61a36f848ac3a2ed40df77be387443b878170e33712f120f392b0a5ede
deleted: sha256:df768018dd3856aeb9d7ddb05bbe6b7ab912d212ec966b182bb28711d4b38f52
deleted: sha256:86a1211a35bd43b220c71727c47e42a5dbf728a49c47003d825c0d02788e31fe
deleted: sha256:90ede044761a80ca632571c676e50521c1da66d4827f16d886c8d2f5b5246602
deleted: sha256:fb30dd1b6009234dee8e3ac2ab39ec0f9d0f7ab2717d838c3dbe18c82678f409
deleted: sha256:9a76b1350c435ff4e4d3100970ef6f9c72e285c22180f98c2e88580d057d8f96
deleted: sha256:e0a618ac6770ad4255ffb8a0d43a724524aaa7b2d2e22c8d59f96c1c3c3edd9d
deleted: sha256:33abba3ccc6af87220c6faed76ca116b29ecdbe74dbcc0cc362c797a33501953
deleted: sha256:d001ec31a9034d9a57585d3d516c1ab634c791a985225a017cab07d968628efd
deleted: sha256:b2eb1e6e448b9b4cac66aa9b0beb25411ef1cc9a86df26361268fe0b7a9efa35
deleted: sha256:631be387b31ea8a6d88de4ca79cb6f1e84ff41d9682cc583527a624706ef2bb9
deleted: sha256:ad3edb405bac1dd6fe95c276b2614f1ec7e996f1d7e3a594a1572f6111c77254
deleted: sha256:17913e88e23853bd5e37097944b6067456c21658470546d79e37cd760d3faa9b
deleted: sha256:cfbfd82225106494d01fe2cdf6a6fbfcf8087ed1468f15a8977df241b2bc5fd9
deleted: sha256:75b7ed548567bb6eb3db2300579ca2471bc51dab4f9ba117bd23643b38056e70
deleted: sha256:151ae598f4141d3f7c98f75a4afddb2030f96f643400f457aab07edc046e83a5
deleted: sha256:17e304c1e2d58f59d89283b64883056d56be0068750abf8f04cd4ddaff9ff5fe
deleted: sha256:3ddd8050c32c42a8631ae0a5218e260a6f7795f6812230144fa192a0f57ebc07
deleted: sha256:2b1032ffcb9b8de165fdd6980e104e21475188faf3ea640755f47ef351c690f5
deleted: sha256:e8a18592841ababd600e4064b1fead3b930bb0ad2ea1a7c301b86cb1db166def
deleted: sha256:711b2db088ffa072057356b94ae3414e7148dd1732231804a5676a124adb494a
deleted: sha256:e9b72c4fb3ab8c718d212b19473750a75f53676cbb77a0dcf1911cfaf504d2d7
deleted: sha256:2e6c46ee4b2c6e09c2ee7c8de36a2de8e5dbaa674e017ece66b40bad4c072542
deleted: sha256:bea50ba1371613d84bffc28c0eba4eb656bb02080101e9f3489a6a4287361b20
deleted: sha256:44406add84efd9e14c386b63ae751c69fd0aaa8b83519bf480dd40701a369a13
deleted: sha256:bbb08bff066b3dcc6da2f66dbadccbe505301fa12e0505395dc7005870968f03
deleted: sha256:a1ebae6324299b44debc323e2ac7e717040bd62f0e26a7934440556e7465bce5
deleted: sha256:9cd0135a60db3405c81a1fc8e1c9d52a9d6ba0e795978795c2398e3f27dadc1d
deleted: sha256:bbd9e8ae8481b875aaf0fe8badde9ca5ddcca491afb96ec85deb20f3188472cf
deleted: sha256:c583b8e929f97cfabae56a6d343090246f01a4d40efcc884a935812bd0905b72
deleted: sha256:2d4ade24e70856b85be77813c1faad33ac9a44b876a6b9f8251373a178989f11
deleted: sha256:4a8774af1bb927742ba5fbfd3eeb650e2af44a0a7f58c6806c814ae441e97265
deleted: sha256:e31a708e51d012bae9b0128e8795db8ca19c06d3465dd9d358b7d7f4d4c0ca6d
deleted: sha256:a9fc1216c695c148928db88565b31def845c9c4b49962340a4a80fbbc7ab48c2
deleted: sha256:450139a88040f632c78019f5db2665f59379b380a2b957520546652fcd9264de
deleted: sha256:80a15fb9343ebe59c5ade8c28116fd1d54c4de24d51771ce75c024c93b1dc2b4
deleted: sha256:2a71427a33ff0795b3373a9afbce86c694d0b6327ccb46406c97189ac5062ee9
deleted: sha256:cc2598578a659bb3bb2f1b4c8cadc95ed26de933379270480ceb9ff3f5803601
deleted: sha256:5b08fa0cbef2872ff513a4ea19742ab1e8ac7e3ca6bd8778ca209e8b2d93ac4c
deleted: sha256:fe29ac36c88e572eae2cad9522b1d1894d5e4368a9ba9343462c0a75ec2bee84
Total reclaimed space: 0B |
Sorry for my mistake, cleaning up dangling images may not reclaim storage space, if you have the same image tagged.
These two images are actually the same, using the same filesystem, and having same layers, just have different id because they are built from different run. Which means, if you delete the image |
I verified locally that deleting the dangling image generated by command |
I tried remove But this work:
|
Works in my local environment. |
For more information, run
As you can see, when we run So, in conclusion, after |
2974ce9
to
a0356d2
Compare
5b43668
to
4ea01f8
Compare
/cc @zhzhuang-zju |
Good job! LGTM cc @ikaven1024 |
4ea01f8
to
f2c2a97
Compare
LGTM |
/retest |
@B1F030: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/ok-to-test |
/retest |
Signed-off-by: B1F030 <b1fzhang@gmail.com>
f2c2a97
to
5544c49
Compare
@RainbowMango PTAL, thanks. |
/assign |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
Thanks for the excellent efforts on this @ikaven1024 @zhzhuang-zju @B1F030
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: RainbowMango The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
Clean up dangling images after each run of
hack/local-up-karmada.sh
.Which issue(s) this PR fixes:
Fixes #4914
Special notes for your reviewer:
Does this PR introduce a user-facing change?: