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


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved How to delete unused docker images ?

    Support
    docker images delete
    4
    6
    250
    Loading More Posts
    • 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
      FortyTwo last edited by FortyTwo

      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

      nebulon girish 2 Replies Last reply Reply Quote 2
      • nebulon
        nebulon Staff @FortyTwo last edited by

        @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 Reply Quote 0
        • F
          FortyTwo last edited by

          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 ?

          nebulon murgero 2 Replies Last reply Reply Quote 0
          • nebulon
            nebulon Staff @FortyTwo last edited by

            @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 Reply Quote 0
            • murgero
              murgero App Dev @FortyTwo last edited by

              @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 Reply Quote 2
              • girish
                girish Staff @FortyTwo last edited by

                @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 Reply Quote 2
                • First post
                  Last post
                Powered by NodeBB