From d014be5426c869d429c1a11cad9e76321dd7a326 Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Wed, 15 Nov 2017 00:02:11 -0800 Subject: [PATCH] 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 --- daemon/graphdriver/register/register_overlay.go | 1 - daemon/graphdriver/register/register_overlay2.go | 8 ++++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 daemon/graphdriver/register/register_overlay2.go diff --git a/daemon/graphdriver/register/register_overlay.go b/daemon/graphdriver/register/register_overlay.go index 9ba849cedc..3a9526420f 100644 --- a/daemon/graphdriver/register/register_overlay.go +++ b/daemon/graphdriver/register/register_overlay.go @@ -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" ) diff --git a/daemon/graphdriver/register/register_overlay2.go b/daemon/graphdriver/register/register_overlay2.go new file mode 100644 index 0000000000..b2da0f4763 --- /dev/null +++ b/daemon/graphdriver/register/register_overlay2.go @@ -0,0 +1,8 @@ +// +build !exclude_graphdriver_overlay2,linux + +package register + +import ( + // register the overlay2 graphdriver + _ "github.com/docker/docker/daemon/graphdriver/overlay2" +)