Move graph driver registration out of the daemon package.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
parent
f5916b10ae
commit
91154e9235
8 changed files with 19 additions and 6 deletions
|
@ -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"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// +build !exclude_graphdriver_aufs,linux
|
||||
|
||||
package daemon
|
||||
package register
|
||||
|
||||
import (
|
||||
// register the aufs graphdriver
|
|
@ -1,6 +1,6 @@
|
|||
// +build !exclude_graphdriver_btrfs,linux
|
||||
|
||||
package daemon
|
||||
package register
|
||||
|
||||
import (
|
||||
// register the btrfs graphdriver
|
|
@ -1,6 +1,6 @@
|
|||
// +build !exclude_graphdriver_devicemapper,linux
|
||||
|
||||
package daemon
|
||||
package register
|
||||
|
||||
import (
|
||||
// register the devmapper graphdriver
|
|
@ -1,6 +1,6 @@
|
|||
// +build !exclude_graphdriver_overlay,linux
|
||||
|
||||
package daemon
|
||||
package register
|
||||
|
||||
import (
|
||||
// register the overlay graphdriver
|
6
daemon/graphdriver/register/register_vfs.go
Normal file
6
daemon/graphdriver/register/register_vfs.go
Normal file
|
@ -0,0 +1,6 @@
|
|||
package register
|
||||
|
||||
import (
|
||||
// register vfs
|
||||
_ "github.com/docker/docker/daemon/graphdriver/vfs"
|
||||
)
|
6
daemon/graphdriver/register/register_windows.go
Normal file
6
daemon/graphdriver/register/register_windows.go
Normal file
|
@ -0,0 +1,6 @@
|
|||
package register
|
||||
|
||||
import (
|
||||
// register the windows graph driver
|
||||
_ "github.com/docker/docker/daemon/graphdriver/windows"
|
||||
)
|
|
@ -1,6 +1,6 @@
|
|||
// +build !exclude_graphdriver_zfs,linux !exclude_graphdriver_zfs,freebsd
|
||||
|
||||
package daemon
|
||||
package register
|
||||
|
||||
import (
|
||||
// register the zfs driver
|
Loading…
Reference in a new issue