Skip to content

Commit 77fb401

Browse files
committed
Detect buildkit with newer docker versions
Signed-off-by: Elijah Zupancic <[email protected]>
1 parent d57af3c commit 77fb401

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ trap finish EXIT ERR SIGTERM SIGINT
185185

186186
p "Building NGINX S3 gateway Docker image"
187187
if [ "${nginx_type}" = "plus" ]; then
188-
if docker info 2> /dev/null | grep --quiet 'Build with BuildKit'; then
188+
if docker buildx > /dev/null 2>&1; then
189189
p "Building using BuildKit"
190190
export DOCKER_BUILDKIT=1
191191
docker build -f Dockerfile.buildkit.${nginx_type} \

0 commit comments

Comments
 (0)