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 system df: Total number of images does not equal installed apps

    Support
    docker
    6
    8
    205
    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.
    • C
      ctrl last edited by girish

      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 Reply Quote 0
      • MooCloud_Matt
        MooCloud_Matt last edited by

        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 Reply Quote 3
        • C
          ctrl last edited by

          Thank you very much for the clarification!

          M 1 Reply Last reply Reply Quote 1
          • M
            malvim @ctrl last edited by 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 1 Reply Last reply Reply Quote 0
            • C
              ctrl @malvim last edited by

              @malvim
              Thanks a lot for the follow up!

              1 Reply Last reply Reply Quote 1
              • xaddison
                xaddison last edited by

                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

                micmc girish 2 Replies Last reply Reply Quote 0
                • micmc
                  micmc @xaddison last edited by

                  @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. 🙂


                  https://marketingtechnology.services

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

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