Can ALL untagged docker.io images be safely removed? -



Can ALL untagged docker.io images be safely removed? -

i can't find anywhere question on answer. when working docker.io there lot of untagged images created. question is: if remove them, risk break anything? mean possible tagged (!) image relies on them, , stops functioning when remove untagged child?

is true in cases?

thanks!

why not try? ;)

here's little list of untagged images on test system:

# docker images -a repository tag image id created virtual size [...] <none> 3fe716bafb0d 36 hours ago 381.2 mb <none> 07bce059bd37 36 hours ago 380.3 mb <none> e1fef18f0eda 36 hours ago 380.3 mb <none> **a7e21150f14d** 36 hours ago 380.3 mb

let's remove image on image depends:

# docker rmi a7e21150f14d error: conflict, a7e21150f14d wasn't deleted 2014/06/19 18:21:45 error: failed remove 1 or more images

ok, seek force alternative now:

# docker rmi -f a7e21150f14d error: conflict, a7e21150f14d wasn't deleted 2014/06/19 18:24:11 error: failed remove 1 or more images # docker images -a | grep a7e21150f14d <none> a7e21150f14d 36 hours ago 380.3 mb

still there.

note : running same test, time on tagged image untag it, there's no way remove long depends on it.

but now, if remove topmost image, automatically clean/remove unused dependencies:

# docker rmi 3fe716bafb0d <-- top image deleted: 3fe716bafb0da75ef9c8691cdcf4e998622963489577c8b34ca2d76ccca20efd deleted: 07bce059bd37aedef85218f6112f0ed492971afaa8ba0d567ae8ca77f1676ff6 deleted: e1fef18f0eda0cb60149c5a739f7f4944dbfbfbc1b7d2a07402f5ca52731a7c9 deleted: a7e21150f14d 20bce85bec30ef6658091a8ce1e85bee64437bf76f9567780c0e

image docker

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -