Move graph driver registration out of the daemon package.

Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
Daniel Nephin 2015-12-23 13:43:34 -05:00
parent f5916b10ae
commit 91154e9235
8 changed files with 19 additions and 6 deletions

View file

@ -30,7 +30,8 @@ import (
"github.com/docker/docker/daemon/exec"
"github.com/docker/docker/daemon/execdriver"
"github.com/docker/docker/daemon/execdriver/execdrivers"
_ "github.com/docker/docker/daemon/graphdriver/vfs" // register vfs
// register graph drivers
_ "github.com/docker/docker/daemon/graphdriver/register"
"github.com/docker/docker/daemon/logger"
"github.com/docker/docker/daemon/network"
"github.com/docker/docker/distribution"

View file

@ -1,6 +1,6 @@
// +build !exclude_graphdriver_aufs,linux
package daemon
package register
import (
// register the aufs graphdriver

View file

@ -1,6 +1,6 @@
// +build !exclude_graphdriver_btrfs,linux
package daemon
package register
import (
// register the btrfs graphdriver

View file

@ -1,6 +1,6 @@
// +build !exclude_graphdriver_devicemapper,linux
package daemon
package register
import (
// register the devmapper graphdriver

View file

@ -1,6 +1,6 @@
// +build !exclude_graphdriver_overlay,linux
package daemon
package register
import (
// register the overlay graphdriver

View file

@ -0,0 +1,6 @@
package register
import (
// register vfs
_ "github.com/docker/docker/daemon/graphdriver/vfs"
)

View file

@ -0,0 +1,6 @@
package register
import (
// register the windows graph driver
_ "github.com/docker/docker/daemon/graphdriver/windows"
)

View file

@ -1,6 +1,6 @@
// +build !exclude_graphdriver_zfs,linux !exclude_graphdriver_zfs,freebsd
package daemon
package register
import (
// register the zfs driver