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. Using ZFS with Cloudron

Using ZFS with Cloudron

Scheduled Pinned Locked Moved Solved Support
docker
6 Posts 3 Posters 1.2k 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.
    • MelodyKH3M Offline
      MelodyKH3M Offline
      MelodyKH3
      wrote on last edited by girish
      #1

      Hi, can anyone explain why we specifically only allow Overlay2 as the storage backend for docker?

      https://git.cloudron.io/cloudron/box/blob/master/baseimage/initializeBaseUbuntuImage.sh#L85-89

      Cloud we make this configurable?

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

        We have seen issues with different docker storage providers introducing unexpected quirks in the past. For example https://git.cloudron.io/cloudron/box/issues/182 So to keep testing burden low and minimize risk of downtime and app breakage, we settled for now on only supporting overlay2.

        Is there any specific reason for you to need something else?

        MelodyKH3M 1 Reply Last reply
        0
        • nebulonN nebulon

          We have seen issues with different docker storage providers introducing unexpected quirks in the past. For example https://git.cloudron.io/cloudron/box/issues/182 So to keep testing burden low and minimize risk of downtime and app breakage, we settled for now on only supporting overlay2.

          Is there any specific reason for you to need something else?

          MelodyKH3M Offline
          MelodyKH3M Offline
          MelodyKH3
          wrote on last edited by
          #3

          @nebulon My server uses ZFS for most of its storage, so having snapshots etc would be pretty convenient. I can use LVM but other people helping maintain it are big fans of ZFS, and we have the storage and RAM already so it would be pretty nice if we could.

          Could we have a parameter or something to let us install it on ZFS without modifying much?

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

            Currently there is no easy way to do that and as mentioned above, unless there are strong reasons, I don't think it makes much sense to support more than overlay2 here, also given that this is the preferred driver from the docker upstream project itself.

            But to take a step back, as you mentioned, your server is setup using ZFS for the storage, from the docker docs, I'm not sure this would prevent you from using overlay2 on a ZFS partition, despite being the default there. I might be wrong, since I've never tried that.

            Can you try to run the Cloudron install script, let it fail, then restart the docker daemon with systemctl restart docker and then run the Cloudron installer again? Just to see if this is just some install script bug to set the storage driver without restarting docker properly?

            1 Reply Last reply
            0
            • girishG Offline
              girishG Offline
              girish
              Staff
              wrote on last edited by
              #5

              Actually, we support customizing docker via systemd drop-in but I can't find docs for it. I will add it and link it here.

              1 Reply Last reply
              1
              • girishG Offline
                girishG Offline
                girish
                Staff
                wrote on last edited by
                #6

                I have added information here on how to change the graph driver using a systemd drop-in - https://cloudron.io/documentation/storage/#docker-image-location . Please use it at your own risk, since as mentioned, we haven't tested with other graph drivers.

                1 Reply Last reply
                0
                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