From 40948c0c0e04ccce1be6ec35acb6d0bede1941b2 Mon Sep 17 00:00:00 2001 From: Djordje Lukic Date: Wed, 26 Jul 2023 18:11:11 +0200 Subject: [PATCH] makefile: use info -f to get the current storage driver Signed-off-by: Djordje Lukic (cherry picked from commit ebb9fade23532aac753870c1e007bd804c33b45f) Signed-off-by: Sebastiaan van Stijn --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8693ea3079..f1d46aa36e 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ DOCKER ?= docker BUILDX ?= $(DOCKER) buildx # set the graph driver as the current graphdriver if not set -DOCKER_GRAPHDRIVER := $(if $(DOCKER_GRAPHDRIVER),$(DOCKER_GRAPHDRIVER),$(shell docker info 2>&1 | grep "Storage Driver" | sed 's/.*: //')) +DOCKER_GRAPHDRIVER := $(if $(DOCKER_GRAPHDRIVER),$(DOCKER_GRAPHDRIVER),$(shell docker info -f {{ .Driver }} 2>&1)) export DOCKER_GRAPHDRIVER DOCKER_GITCOMMIT := $(shell git rev-parse HEAD)