hack/util: disallow using DOCKER_BUILDKIT instead of buildx

DOCKER_BUILDKIT CLI is slightly different from buildx.
It is hard to maintain DOCKER_BUILDKIT as a buildx alternative.

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
v0.9
Akihiro Suda 2020-11-26 13:41:10 +09:00
parent 7880a4ea24
commit 97b0904bcd
No known key found for this signature in database
GPG Key ID: 49524C6F9F638F1A
1 changed files with 1 additions and 4 deletions

View File

@ -28,11 +28,8 @@ buildxCmd() {
elif buildx version >/dev/null 2>&1; then
set -x
buildx "$@" $progressFlag
elif docker version >/dev/null 2>&1; then
set -x
DOCKER_BUILDKIT=1 docker "$@" $progressFlag
else
echo >&2 "ERROR: Please enable DOCKER_BUILDKIT or install standalone buildx"
echo >&2 "ERROR: Please install buildx"
exit 1
fi
}