daemon/graphdriver/register: separate overlay2
Make it possible to disable overlay and overlay2 separately. With this commit, we now have `exclude_graphdriver_overlay` and `exclude_graphdriver_overlay2` build tags for the engine, which is in line with any other graph driver. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
parent
f62aeae977
commit
d014be5426
2 changed files with 8 additions and 1 deletions
|
@ -5,5 +5,4 @@ package register
|
|||
import (
|
||||
// register the overlay graphdriver
|
||||
_ "github.com/docker/docker/daemon/graphdriver/overlay"
|
||||
_ "github.com/docker/docker/daemon/graphdriver/overlay2"
|
||||
)
|
||||
|
|
8
daemon/graphdriver/register/register_overlay2.go
Normal file
8
daemon/graphdriver/register/register_overlay2.go
Normal file
|
@ -0,0 +1,8 @@
|
|||
// +build !exclude_graphdriver_overlay2,linux
|
||||
|
||||
package register
|
||||
|
||||
import (
|
||||
// register the overlay2 graphdriver
|
||||
_ "github.com/docker/docker/daemon/graphdriver/overlay2"
|
||||
)
|
Loading…
Reference in a new issue