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 Docker Images Taking huge space

    Support
    docker disk space
    3
    5
    292
    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.
    • G
      ghaisasadvait last edited by girish

      Docker Images Taking huge space. I only have 3 apps installed. Is there any solution to clear the docker images?

      b5c04928-c339-413e-80f3-950ff9112472-image.png

      girish 1 Reply Last reply Reply Quote 0
      • girish
        girish Staff @ghaisasadvait last edited by

        @ghaisasadvait you can run docker image prune -a to cleanup unused images. Usually, this is automatic though.

        I suspect it's taking a bit of space because we are in the middle of moving all the docker images to a newer base image - https://forum.cloudron.io/topic/6178/new-base-image-3-2-0-was-3-1-0. Since, we have over 100 apps, it will take a bit to "transition" all of them, but over 60 apps are already moved. With 7.1 (https://forum.cloudron.io/topic/5982/what-s-coming-in-cloudron-7-1) , the whole platform will also move to the new image. Until, then it will take up ~3GB or so more than usual.

        ei8fdb 1 Reply Last reply Reply Quote 1
        • girish
          girish Staff last edited by

          Just wanted to add that the size won't grow much more from now as you install more apps.

          1 Reply Last reply Reply Quote 0
          • ei8fdb
            ei8fdb @girish last edited by ei8fdb

            @ghaisasadvait you can run docker image prune -a to cleanup unused images. Usually, this is automatic though.

            bcde2ae3-b8c6-4eb6-84bc-ebb02d7c0318-image.png

            @girish Thanks for suggesting the prune -a command. Before issuing it disk space usage was 29.49GB. It shrunk disk usage by ~ 7GB.

            Here's my docker image usage after issuing prune -a. I'm guessing I won't see that reclaimed disk space in the system UI as the docker images weren't being used by any container?

            Scratch that: it took a few hours for the reclaimed disk space to show up.

            girish 1 Reply Last reply Reply Quote 1
            • girish
              girish Staff @ei8fdb last edited by girish

              @ei8fdb right the graphs don't update immediately, but every 6 hours or so. Otherwise, the disk spins a lot 🙂

              I will mark this thread as solved, but this problem will go away soonish. I think only ~20 apps are left to use the new base image. The 7.1 release also updates all the internal containers to use the latest image. Should all be done end of this month.

              1 Reply Last reply Reply Quote 1
              • First post
                Last post
              Powered by NodeBB