diff --git a/hack/build-base-images.sh b/hack/build-base-images.sh index d2e49b407919..282413affa14 100755 --- a/hack/build-base-images.sh +++ b/hack/build-base-images.sh @@ -12,7 +12,7 @@ if [[ -z "${oc}" ]]; then fi function build() { - eval "docker build ${OS_BUILD_IMAGE_ARGS:-} -t $1 $2" + eval "'${oc}' ex dockerbuild $2 $1 ${OS_BUILD_IMAGE_ARGS:-}" } # Build the images diff --git a/hack/build-images.sh b/hack/build-images.sh index 74154a47fcb7..9bb0d5840c9a 100755 --- a/hack/build-images.sh +++ b/hack/build-images.sh @@ -51,7 +51,7 @@ if [[ -z "${oc}" ]]; then fi function build() { - eval "docker build ${OS_BUILD_IMAGE_ARGS:-} -t $1 $2" + eval "'${oc}' ex dockerbuild $2 $1 ${OS_BUILD_IMAGE_ARGS:-}" } # Create link to file if the FS supports hardlinks, otherwise copy the file