armbian-next: docker: fix when using buildx, always pass --load so produced image is actually available to Docker proper

This commit is contained in:
Ricardo Pardini 2022-12-15 20:17:20 +01:00
parent 2d563312bd
commit b606ae9715
No known key found for this signature in database
GPG Key ID: 3D38CA12A66C5D02

View File

@ -151,7 +151,7 @@ function docker_cli_prepare() {
declare -g -a DOCKER_BUILDX_OR_BUILD=("build")
if [[ -n "${DOCKER_BUILDX_VERSION}" ]]; then
DOCKER_HAS_BUILDX=yes
DOCKER_BUILDX_OR_BUILD=("buildx" "build" "--progress=plain")
DOCKER_BUILDX_OR_BUILD=("buildx" "build" "--progress=plain" "--load")
fi
display_alert "Docker has buildx?" "${DOCKER_HAS_BUILDX}" "debug"