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


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
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
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. docker system df: Total number of images does not equal installed apps

docker system df: Total number of images does not equal installed apps

Scheduled Pinned Locked Moved Solved Support
docker
8 Posts 6 Posters 1.5k Views 6 Watching
  • 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.
  • C Offline
    C Offline
    ctrl
    wrote on last edited by girish
    #1

    Hello Team,

    I just ran docker system df. It outputs 16 images und 18 containers as a grand total although we only have 8 apps installed currently. Are the remaining images/containers some kind of cruft?

    root@my ~ # docker system df
    TYPE                TOTAL               ACTIVE              SIZE                RECLAIMABLE
    Images              16                  16                  8.133GB             1.45GB (17%)
    Containers          18                  17                  69.63kB             0B (0%)
    Local Volumes       42                  34                  378.4MB             70.35kB (0%)
    Build Cache         0                   0                   0B                  0B
    
    1 Reply Last reply
    0
    • MooCloud_MattM Offline
      MooCloud_MattM Offline
      MooCloud_Matt
      wrote on last edited by
      #2

      If u use Apps, that need more container, like nextcloud or wp, you need to count redis too, for exemple.
      And there are System Apps to, like Haraka for the email

      Matteo. R.
      Founder and Tech-Support Manager.
      MooCloud MSP
      Swiss Managed Service Provider

      1 Reply Last reply
      3
      • C Offline
        C Offline
        ctrl
        wrote on last edited by
        #3

        Thank you very much for the clarification!

        M 1 Reply Last reply
        1
        • C ctrl

          Thank you very much for the clarification!

          M Offline
          M Offline
          malvim
          wrote on last edited by malvim
          #4

          @ctrl Yeah, I think if you run docker ps you'll be able to see what's going on a bit better. The apps use databases like mysql, mongodb, redis; There's also other addons like sftp, mail, turn, and graphite.

          C 1 Reply Last reply
          0
          • M malvim

            @ctrl Yeah, I think if you run docker ps you'll be able to see what's going on a bit better. The apps use databases like mysql, mongodb, redis; There's also other addons like sftp, mail, turn, and graphite.

            C Offline
            C Offline
            ctrl
            wrote on last edited by
            #5

            @malvim
            Thanks a lot for the follow up!

            1 Reply Last reply
            1
            • xaddisonX Offline
              xaddisonX Offline
              xaddison
              wrote on last edited by
              #6

              On this note; where and how should docker prune be implemented? Or is it already somewhere in the Cloudron foundation?

              I was able to drop like 7 old containers outside of Cloudron with:

              sudo docker container prune -f && sudo docker image prune -f

              micmcM girishG 2 Replies Last reply
              0
              • xaddisonX xaddison

                On this note; where and how should docker prune be implemented? Or is it already somewhere in the Cloudron foundation?

                I was able to drop like 7 old containers outside of Cloudron with:

                sudo docker container prune -f && sudo docker image prune -f

                micmcM Offline
                micmcM Offline
                micmc
                wrote on last edited by
                #7

                @xaddison said in docker system df: Total number of images does not equal installed apps:

                sudo docker container prune -f && sudo docker image prune -f

                You shouldn't mess with docker on the server where is your Cloudron installation, you shouldn't even update the server, to the risk of breaking your installation and / or some vital functions of it.

                If you want to keep playing docker you should do it on another server because Cloudron is meant to take care of all this by itself. My two cents of advice. 🙂

                Ignorance is not an excuse anymore!
                https://AutomateKit.com

                1 Reply Last reply
                2
                • xaddisonX xaddison

                  On this note; where and how should docker prune be implemented? Or is it already somewhere in the Cloudron foundation?

                  I was able to drop like 7 old containers outside of Cloudron with:

                  sudo docker container prune -f && sudo docker image prune -f

                  girishG Offline
                  girishG Offline
                  girish
                  Staff
                  wrote on last edited by
                  #8

                  @xaddison the prune is done automatically when needed in the code. Most likely the containers that got removed are the ones that were "stopped". Cloudron runs cron jobs of apps in containers, for example. They will be in stopped state after finishing a run but will be reused in the next run. As for images, not sure what it cleaned up. Do you have the output of what it removed?

                  1 Reply Last reply
                  2
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

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