浏览代码

Fix graphdriver lookup in makefile

When graphdriver is not provided the graphdriver is looked up
from docker info, but without quotes it may fail and set the
graphdriver to an incorrect value.

Signed-off-by: Derek McGowan <derek@mcg.dev>
Derek McGowan 1 年之前
父节点
当前提交
06a640084f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Makefile

+ 1 - 1
Makefile

@@ -4,7 +4,7 @@ DOCKER ?= docker
 BUILDX ?= $(DOCKER) buildx
 BUILDX ?= $(DOCKER) buildx
 
 
 # set the graph driver as the current graphdriver if not set
 # set the graph driver as the current graphdriver if not set
-DOCKER_GRAPHDRIVER := $(if $(DOCKER_GRAPHDRIVER),$(DOCKER_GRAPHDRIVER),$(shell docker info -f {{ .Driver }} 2>&1))
+DOCKER_GRAPHDRIVER := $(if $(DOCKER_GRAPHDRIVER),$(DOCKER_GRAPHDRIVER),$(shell docker info -f '{{ .Driver }}' 2>&1))
 export DOCKER_GRAPHDRIVER
 export DOCKER_GRAPHDRIVER
 
 
 DOCKER_GITCOMMIT := $(shell git rev-parse HEAD)
 DOCKER_GITCOMMIT := $(shell git rev-parse HEAD)