OpenMediaVault-Plugin-Developers / openmediavault-docker-gui

Docker plugin for OpenMediaVault
32 stars 17 forks source link

Support for switching storage backends #7

Open nicjo814 opened 8 years ago

nicjo814 commented 8 years ago

Which backends should be supported?

subzero79 commented 8 years ago

I have my doubts about this and having a switch there just to click without users understanding what consequences can bring. What will happen with currently stored images/containers?

ikogan commented 8 years ago

That's certainly an issue, but I feel like an adequate warning could be provided (https://labs.ctl.io/how-to-use-different-docker-filesystem-backends/). I think you can get a list of storage backends by looking at wherever this builds: https://github.com/docker/docker/tree/master/daemon/graphdriver. http://nkhare.github.io/data_and_network_containers/storage_backends/ claims:

# pwd
/work/docker/docker/daemon/graphdriver
$ grep -ir -A9 "priority = \[\]string" driver_linux.go 
    priority = []string{
        "aufs",
        "btrfs",
        "zfs",
        "devicemapper",
        "overlay",
        "vfs",
    }
subzero79 commented 8 years ago

I would prefer to leave this as pseudo var with a note in the /etc/default/docker for a advanced users. If you change from btrfs to another one you probably loose all Cow properties of the subvolumes

subzero79 commented 6 years ago

I am about to submit a PR that will change how we pass the flags to dockerd by using /etc/docker/daemon.json. The user can add his storage driver of preference in that file