Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Cloudron Forum

Apps | Demo | Docs | Install

How to delete unused docker images ?

Scheduled Pinned Locked Moved Solved Support
dockerimagesdelete
6 Posts 4 Posters 337 Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    FortyTwo
    wrote on last edited by FortyTwo
    #1

    Hi community,

    I noticed that every time we install and delete an application, the docker image is not deleted on the server hard drive. This poses a problem in the size of the backup I do daily, I use Scaleway S3 Object Storage with 75GB free and I don't want to exceed this quota.

    Anyone to explain how to delete docker images of uninstalled and unused applications please ?

    Thanks

    cloudron_docker_images.png

    nebulonN girishG 2 Replies Last reply
    2
  • nebulonN Offline
    nebulonN Offline
    nebulon Staff
    replied to FortyTwo on last edited by
    #2

    @fortytwo unused docker images are purged on app installation. The apps also share some base image layers to preserver space. Also there are docker images for addons and service containers. The details about used space are not live values, so they might lag few hours behind actual usage.

    1 Reply Last reply
    0
  • F Offline
    F Offline
    FortyTwo
    wrote on last edited by
    #3

    Thanks for your answer @nebulon always there to help us, thank you so much :))

    I haven't reinstalled any other app for several weeks now and I'm using Bitwarden and Nextcloud exclusively, yet the size of the Docker storage in the topic image doesn't move. I can't believe it's only Nextcloud and Bitwarden images, it seems way too big!

    Can you point me to the path to the folder Docker images please ?

    nebulonN murgeroM 2 Replies Last reply
    0
  • nebulonN Offline
    nebulonN Offline
    nebulon Staff
    replied to FortyTwo on last edited by
    #4

    @fortytwo actually the roughly about 5Gb seems correct, given that these are two apps and all the service containers. It is not easily possible to figure out the image size from the filesystem as such, you have to use the docker cli tool for that. Generally if you would like to move the images to a different disk, there is information about this at https://docs.cloudron.io/storage/#docker-images

    1 Reply Last reply
    0
  • murgeroM Offline
    murgeroM Offline
    murgero App Dev
    replied to FortyTwo on last edited by
    #5

    @fortytwo It's more than the 2 app's images. Docker images also includes what cloudron calls "service images" which is background services like email, databases (postgresql, mysql/mariadb, etc etc), and other services running in background.

    --
    https://urgero.org
    ~ Professional Nerd. Freelance Programmer. ~
    Matrix: @murgero:urgero.org

    1 Reply Last reply
    2
  • girishG Do not disturb
    girishG Do not disturb
    girish Staff
    replied to FortyTwo on last edited by
    #6

    @fortytwo said in How to delete unused docker images ?:

    Scaleway S3 Object Storage with 75GB free

    Is this for your backup? Cloudron does not backup images (and code), just your data. From your screenshot, it's only going to take 1.13G (nextcloud) + 6.5M (bitwarden) + 520K (box) + 212K (email). So, it's way less than 2GB per backup. If you store like 30 full backups, it's still under your object storage.

    We use what is called immutable infrastructure for this if you want to learn more.

    1 Reply Last reply
    2

  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Login

  • Don't have an account? Register

  • Login or register to search.