Menghapus docker image

Docker image yang suah tidak digunakan sebaiknya dihapus saja, agar storage lebih longgar. Pastikan docker daemon aktif

dockerd

List docker imagenya

$ docker images
REPOSITORY   TAG            IMAGE ID       CREATED       SIZE
qgis/qgis    release-3_16   ee28ddd8c37a   4 days ago    7.43GB
qgis/qgis    <none>         c84657a1e2f6   3 weeks ago   7.43GB

Hapus

$ docker rmi -f ee28ddd8c37a c84657a1e2f6

Ingin menghapus semua container, image, dll

$ docker system prune -a
WARNING! This will remove:
  - all stopped containers
  - all networks not used by at least one container
  - all dangling images
  - all dangling build cache

Are you sure you want to continue? [y/N] y

 Share!

 
comments powered by Disqus