Browse code

set the default storage driver as the users current default

Signed-off-by: Jess Frazelle <jess@mesosphere.com>

Jess Frazelle authored on 2016/03/25 01:12:40
Showing 1 changed files
... ...
@@ -1,5 +1,8 @@
1 1
 .PHONY: all binary build cross default docs docs-build docs-shell shell test test-docker-py test-integration-cli test-unit validate
2 2
 
3
+# set the graph driver as the current graphdriver if not set
4
+DOCKER_GRAPHDRIVER := $(if $(DOCKER_GRAPHDRIVER),$(DOCKER_GRAPHDRIVER),$(shell docker info | grep "Storage Driver" | sed 's/.*: //'))
5
+
3 6
 # get OS/Arch of docker engine
4 7
 DOCKER_OSARCH := $(shell bash -c 'source hack/make/.detect-daemon-osarch && echo $${DOCKER_ENGINE_OSARCH:-$$DOCKER_CLIENT_OSARCH}')
5 8
 DOCKERFILE := $(shell bash -c 'source hack/make/.detect-daemon-osarch && echo $${DOCKERFILE}')
... ...
@@ -15,7 +18,7 @@ DOCKER_ENVS := \
15 15
 	-e DOCKER_CLIENTONLY \
16 16
 	-e DOCKER_DEBUG \
17 17
 	-e DOCKER_EXPERIMENTAL \
18
-	-e DOCKER_GRAPHDRIVER \
18
+	-e DOCKER_GRAPHDRIVER=$(DOCKER_GRAPHDRIVER) \
19 19
 	-e DOCKER_INCREMENTAL_BINARY \
20 20
 	-e DOCKER_REMAP_ROOT \
21 21
 	-e DOCKER_STORAGE_OPTS \