Clickable: docker images accumulate on my hard drive
-
Hi,
The docker images, used for Clickable, accumulates on my hard drive and I run out of space!
I run Kubuntu 20.04 on a disk of 120GB, and I have another larger disk for my /home.
Until now I did not care where this images where stored, and I was a bit surprised to run out of space.
Docker images are stored in /var/lib/docker so they uses space on my 120GB disk.
And I have many images:XXX@XXX:~$ docker image ls REPOSITORY TAG IMAGE ID CREATED SIZE clickable/amd64-16.04-armhf 16.04.5 de10b0785b01 12 days ago 3.24GB clickable/amd64-16.04-amd64 16.04.5 46cf1141cef4 12 days ago 3.44GB clickable/amd64-16.04-amd64 <none> 7e758494f183 2 months ago 3.42GB clickable/amd64-16.04-armhf <none> 6236c98e71a1 2 months ago 3.2GB clickable/amd64-16.04-amd64 <none> e3075a8131f7 2 months ago 3.42GB clickable/amd64-16.04-armhf <none> 79e9333e49e6 2 months ago 3.2GB clickable/amd64-16.04-amd64 <none> 0b3ce64ac2a1 4 months ago 3.21GB clickable/amd64-16.04-armhf <none> 60280ecc7f75 4 months ago 2.97GB clickable/amd64-16.04-armhf 16.04.5-52e346f1-7f68-4acf-b25a-f909a7f151de d5a088555e63 6 months ago 3.06GB clickable/amd64-16.04-amd64 16.04.5-e6f90001-5335-4b61-aaaf-ee27ec05ca9a f2ae84741742 6 months ago 3.28GB clickable/amd64-16.04-amd64 <none> 5c90fa6d0219 7 months ago 3.24GB clickable/amd64-16.04-armhf <none> 274d61c78369 7 months ago 2.99GB clickable/amd64-16.04-amd64 <none> ca2295f385c8 8 months ago 3.22GB clickable/amd64-16.04-armhf <none> ac0efb3e90f9 8 months ago 2.97GB clickable/amd64-16.04-armhf 16.04.4-qt5.9 70ee31165bda 8 months ago 3.32GB clickable/amd64-16.04-amd64 16.04.4-qt5.9 020f92dc47d1 8 months ago 3.73GB clickable/amd64-16.04-armhf <none> b05354f06d34 8 months ago 3.32GB clickable/amd64-16.04-amd64 latest 221fafae479b 8 months ago 3.22GB clickable/amd64-16.04-armhf latest e21dd4f44f87 8 months ago 2.97GB clickable/amd64-16.04-amd64 <none> b287ba7b39ee 10 months ago 3.16GB clickable/ubuntu-sdk 16.04-armhf d29e7ad6f85d 13 months ago 2.89GB clickable/ubuntu-sdk 16.04-amd64 534d93e2668b 13 months ago 3.16GB clickable/ubuntu-sdk <none> d146e1f7df02 14 months ago 3.17GB clickable/ubuntu-sdk <none> 1de64d532fa1 14 months ago 2.9GB clickable/ubuntu-sdk <none> 77906c8157f9 16 months ago 2.86GB clickable/ubuntu-sdk <none> 4b671c33afef 16 months ago 3.13GBI do not know exactly which ones I shall keep, so I will delete all of them (by using the appropriate docker commands), and then do a
clickable updateto reload required images.So no question, just to share, but I will be interested if anyone has recommendation, or info to better handle this.
-
To erase docker images, I use docker command rmi, for example for IMAGE ID = 4b671c33afef
docker rmi 4b671c33afefThen, after deleting all images, doing
clickable updatedoes nothing!But just build your app with
clickableorclickable desktopand images are reloaded.
This gives:docker image ls REPOSITORY TAG IMAGE ID CREATED SIZE clickable/amd64-16.04-armhf 16.04.5 de10b0785b01 12 days ago 3.24GB clickable/amd64-16.04-amd64 16.04.5 46cf1141cef4 12 days ago 3.44GB -
-
I use this to delete all unused images in a month.
sudo docker rmi $(docker images -a | grep "month" | awk '{print $3}')
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register Login