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:
Kir Kolyshkin 2017-11-15 00:02:11 -08:00
parent f62aeae977
commit d014be5426
2 changed files with 8 additions and 1 deletions

View File

@ -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"
)

View File

@ -0,0 +1,8 @@
// +build !exclude_graphdriver_overlay2,linux
package register
import (
// register the overlay2 graphdriver
_ "github.com/docker/docker/daemon/graphdriver/overlay2"
)