Hi,
how can I cleanup /var/lib/docker/overlay/? Can I use
docker system prune
safely?
Hi,
how can I cleanup /var/lib/docker/overlay/? Can I use
docker system prune
safely?
AFAIK docker system prune
will also remove stopped containers. So you’ll have to be sure that you have not stopped any app container.
IMHO it’s safer to manually remove unused images (those with <none>
tags) using docker rmi <IMAGE ID>
.
Greetings
Daniel
I’ve removed the old images already. But there are still some old volumes:
# docker volume list
DRIVER VOLUME NAME
local 0ee9d7b7574e697c1bb8ff28db851d272ce6c15107366c735b0d86bb42634511
local 1cbfcbaca910ac1ee6eff53e053812535c3705e8b0fd28143e215bad7b26ec62
local 01e00acaad6339cff6555de1699d9a7faf5c21d9233dc808c795dcdae569f644
local 2f9bab95227b4716c636fdceb4da4b1dfc83ec45a022d3091f8df45d4c303e79
local 3db65ddaac226e0f1eab44f6f15ae0143ea7c50abb3fd04b11259a60e6c1f937
local 7e48ab3cc6ef1b46dd5bf435a80ceab716f9c0dde5cc21f0b47e9c29d25f7a6e
local 51eb7187320900582459151c12c144476b260a53eca9f16b1af23a10e0a2e776
local 83a4afa54b427d99f5c122b0f78ee82113df53f0ddb9615848627104781877cd
local 86cc49196a1c406ef29c5514093db78b79ec95ebfb7985ead9e245b619110dcd
local 88acd2898a2b841f794901b003c20261135cc1eba5db7c13e3c93f2fd7e13d2a
local 94fc3a00e24581cf489d0e0ff1c1145c900b33443167af930dd250c488f65233
local 674b2dee4006234f893245598a98d60460f1f67306050820b766d531080e1614
local 717c654960c0944bd5d37795ba4a85f26cdeaf3522fd741658e6ce33c43c533e
local 40169a4a1eddfd35f8863025e080fc7b58b6f32197ec29fb6d80130ef07f4085
local 5779085159c2d10b5b5a353f8e51763e8e068c3637f6e938e75bd199fc9a1748
local 8901774158a83f043a0d3f360797212db5e16cef7b52f81ce1590ea4f9cd6b0a
local a8d38f5e6703591afa9ebcb15ae34e32446ca145d747bb7624dd37bbc2c06c2d
local ad8f2f11e0d85cd7d12fa5eb96f7ede1f9b5ebc71da0d5d68ec1b56f7d5474ae
local bb17a790533d1f29965ae780275b5e1b681f7a07d834d46ee75bb898c7778f79
local cfdc5d0d76c096bf6bda5fcf99c7c4e10b3eced72b6d19087b430f9bc7548bae
local d4526fdd25fa1d756bd0522d60ee5b382860be9d40d5b54b92a1b4fda54c6626
local e8a884d6ecae3a5b7887c4b4c5ed9674542d1671068c5b01700f85fd3f3dd232
local f2be2bb886cb3e5a33cc3d1678342b2c4dd2a6644203360f11c709dc678b9464
local f1947dd5e1021b73ed924d841d7f151dc83a0c637b30264044eaacf71342005a
local fd828434e8c7d8cd5c8b821fad9de50012861d91d9a266b2fa163df57fa004f3
local ffc01f0ab81db528da1ab8440e33ef56bb007c56877ab5350ec810ca80c50a3e
Hi
I also have these problems
I have 191 volumes
With this command
ucr dump | grep container
I only have 5 containers
docker system prune
This doesn’t help me
So how to fix that
Can i delete all these volumes?