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
  • Brite
  • 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 - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. /var/lib/docker/overlay2 is really huge!

/var/lib/docker/overlay2 is really huge!

Scheduled Pinned Locked Moved Solved Support
dockerstorage
8 Posts 3 Posters 3.5k Views 3 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
    cocam123
    wrote on last edited by joseph
    #1

    Hi! I saw today that my /var/lib/docker/overlay2 folder is 42 GB. Is there any way to free up space?

    Thank you in advance for your answers

    1 Reply Last reply
    1
    • nebulonN Offline
      nebulonN Offline
      nebulon
      Staff
      wrote on last edited by nebulon
      #2

      Please see the info box (a bit lower in that section) about the size of that folder reported by unix tools at https://docs.cloudron.io/storage/#docker-images

      Most likely the majority of this is just virtual space.

      C 2 Replies Last reply
      2
      • J Online
        J Online
        joseph
        Staff
        wrote on last edited by
        #3

        You can run docker system prune -a to see if it cleans up something

        1 Reply Last reply
        0
        • nebulonN nebulon

          Please see the info box (a bit lower in that section) about the size of that folder reported by unix tools at https://docs.cloudron.io/storage/#docker-images

          Most likely the majority of this is just virtual space.

          C Offline
          C Offline
          cocam123
          wrote on last edited by
          #4

          @nebulon hiya! Okay I tried to move it on /mtn/docker (I mounted my s3 server on it. Idk if that's the issue) but when I try to launch the service (Docker) I have that :

          Sep 28 08:15:53 beige-beaver-45300 systemd[1]: Stopped Docker Application Container Engine.
          -- Subject: A stop job for unit docker.service has finished
          -- Defined-By: systemd
          -- Support: http://www.ubuntu.com/support
          --
          -- A stop job for unit docker.service has finished.
          --
          -- The job identifier is 1960 and the job result is done.
          Sep 28 08:15:53 beige-beaver-45300 systemd[1]: docker.service: Start request repeated too quickly.
          Sep 28 08:15:53 beige-beaver-45300 systemd[1]: docker.service: Failed with result 'exit-code'.
          -- Subject: Unit failed
          -- Defined-By: systemd
          -- Support: http://www.ubuntu.com/support
          --
          -- The unit docker.service has entered the 'failed' state with result 'exit-code'.
          Sep 28 08:15:53 beige-beaver-45300 systemd[1]: Failed to start Docker Application Container Engine.
          -- Subject: A start job for unit docker.service has failed
          -- Defined-By: systemd
          -- Support: http://www.ubuntu.com/support
          --
          -- A start job for unit docker.service has finished with a failure.
          --
          -- The job identifier is 1960 and the job result is failed.
          Sep 28 08:15:53 beige-beaver-45300 systemd[1]: docker.socket: Failed with result 'service-start-limit-hit'.
          -- Subject: Unit failed
          -- Defined-By: systemd
          -- Support: http://www.ubuntu.com/support
          --
          -- The unit docker.socket has entered the 'failed' state with result 'service-start-limit-hit'.
          lines 3518-3546/3546 (END)
          Sep 28 08:15:53 beige-beaver-45300 systemd[1]: Stopped Docker Application Container Engine.
          -- Subject: A stop job for unit docker.service has finished
          -- Defined-By: systemd
          -- Support: http://www.ubuntu.com/support
          --
          -- A stop job for unit docker.service has finished.
          --
          -- The job identifier is 1960 and the job result is done.
          Sep 28 08:15:53 beige-beaver-45300 systemd[1]: docker.service: Start request repeated too quickly.
          Sep 28 08:15:53 beige-beaver-45300 systemd[1]: docker.service: Failed with result 'exit-code'.
          -- Subject: Unit failed
          -- Defined-By: systemd
          -- Support: http://www.ubuntu.com/support
          --
          -- The unit docker.service has entered the 'failed' state with result 'exit-code'.
          Sep 28 08:15:53 beige-beaver-45300 systemd[1]: Failed to start Docker Application Container Engine.
          -- Subject: A start job for unit docker.service has failed
          -- Defined-By: systemd
          -- Support: http://www.ubuntu.com/support
          --
          -- A start job for unit docker.service has finished with a failure.
          --
          -- The job identifier is 1960 and the job result is failed.
          Sep 28 08:15:53 beige-beaver-45300 systemd[1]: docker.socket: Failed with result 'service-start-limit-hit'.
          -- Subject: Unit failed
          -- Defined-By: systemd
          -- Support: http://www.ubuntu.com/support
          --
          -- The unit docker.socket has entered the 'failed' state with result 'service-start-limit-hit'.
          

          When I remove the content in custom.conf, it works again

          J 1 Reply Last reply
          0
          • nebulonN nebulon

            Please see the info box (a bit lower in that section) about the size of that folder reported by unix tools at https://docs.cloudron.io/storage/#docker-images

            Most likely the majority of this is just virtual space.

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

            @nebulon @joseph okay I did that but the system space always seems to be full. Also, I did the docker system prune command and nope, no reclaimed space

            If it's just unused virtual space, how do I reduce this space to give it back to the system?

            1 Reply Last reply
            0
            • C cocam123

              @nebulon hiya! Okay I tried to move it on /mtn/docker (I mounted my s3 server on it. Idk if that's the issue) but when I try to launch the service (Docker) I have that :

              Sep 28 08:15:53 beige-beaver-45300 systemd[1]: Stopped Docker Application Container Engine.
              -- Subject: A stop job for unit docker.service has finished
              -- Defined-By: systemd
              -- Support: http://www.ubuntu.com/support
              --
              -- A stop job for unit docker.service has finished.
              --
              -- The job identifier is 1960 and the job result is done.
              Sep 28 08:15:53 beige-beaver-45300 systemd[1]: docker.service: Start request repeated too quickly.
              Sep 28 08:15:53 beige-beaver-45300 systemd[1]: docker.service: Failed with result 'exit-code'.
              -- Subject: Unit failed
              -- Defined-By: systemd
              -- Support: http://www.ubuntu.com/support
              --
              -- The unit docker.service has entered the 'failed' state with result 'exit-code'.
              Sep 28 08:15:53 beige-beaver-45300 systemd[1]: Failed to start Docker Application Container Engine.
              -- Subject: A start job for unit docker.service has failed
              -- Defined-By: systemd
              -- Support: http://www.ubuntu.com/support
              --
              -- A start job for unit docker.service has finished with a failure.
              --
              -- The job identifier is 1960 and the job result is failed.
              Sep 28 08:15:53 beige-beaver-45300 systemd[1]: docker.socket: Failed with result 'service-start-limit-hit'.
              -- Subject: Unit failed
              -- Defined-By: systemd
              -- Support: http://www.ubuntu.com/support
              --
              -- The unit docker.socket has entered the 'failed' state with result 'service-start-limit-hit'.
              lines 3518-3546/3546 (END)
              Sep 28 08:15:53 beige-beaver-45300 systemd[1]: Stopped Docker Application Container Engine.
              -- Subject: A stop job for unit docker.service has finished
              -- Defined-By: systemd
              -- Support: http://www.ubuntu.com/support
              --
              -- A stop job for unit docker.service has finished.
              --
              -- The job identifier is 1960 and the job result is done.
              Sep 28 08:15:53 beige-beaver-45300 systemd[1]: docker.service: Start request repeated too quickly.
              Sep 28 08:15:53 beige-beaver-45300 systemd[1]: docker.service: Failed with result 'exit-code'.
              -- Subject: Unit failed
              -- Defined-By: systemd
              -- Support: http://www.ubuntu.com/support
              --
              -- The unit docker.service has entered the 'failed' state with result 'exit-code'.
              Sep 28 08:15:53 beige-beaver-45300 systemd[1]: Failed to start Docker Application Container Engine.
              -- Subject: A start job for unit docker.service has failed
              -- Defined-By: systemd
              -- Support: http://www.ubuntu.com/support
              --
              -- A start job for unit docker.service has finished with a failure.
              --
              -- The job identifier is 1960 and the job result is failed.
              Sep 28 08:15:53 beige-beaver-45300 systemd[1]: docker.socket: Failed with result 'service-start-limit-hit'.
              -- Subject: Unit failed
              -- Defined-By: systemd
              -- Support: http://www.ubuntu.com/support
              --
              -- The unit docker.socket has entered the 'failed' state with result 'service-start-limit-hit'.
              

              When I remove the content in custom.conf, it works again

              J Online
              J Online
              joseph
              Staff
              wrote on last edited by
              #6

              @cocam123 said in /var/lib/docker/overlay2 is really huge!:

              Okay I tried to move it on /mtn/docker (I mounted my s3 server on it.

              This won't work. Docker requires a proper filesystem and not some fuse/s3fs.

              You can use docker system df to see where all the space is going.

              1 Reply Last reply
              0
              • J joseph marked this topic as a question on
              • C Offline
                C Offline
                cocam123
                wrote on last edited by
                #7

                mmmm I only see that my images take 9.31 GB and my local volume 241 MB... I don't know what's taking up so much space, honestly

                all my services work with an S3 server behind them, so I doubt it has anything to do with media files (images/videos) of my services

                1 Reply Last reply
                1
                • J Online
                  J Online
                  joseph
                  Staff
                  wrote on last edited by
                  #8

                  I think we have to go back to the original question. What's the original issue? Using tools like df in /var/lib/docker/overlay2 won't work.

                  1 Reply Last reply
                  0
                  • girishG girish has marked this topic as solved on

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  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