Skip to content

Commit 2e412b1

Browse files
Fix ltex Docker image loading with buildx docker-container driver (#9)
Add --load flag to docker build command to ensure the built image is exported to the local Docker image store, not just kept in the build cache. This fixes compatibility with Podman Desktop and Docker setups using the docker-container buildx driver, where docker build is aliased to docker buildx build and requires explicit --load to make images available for docker run. Without this flag, the build succeeds but the image remains only in the BuildKit cache, causing "Unable to find image" errors when the hook tries to run the container.
1 parent d8b38e2 commit 2e412b1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ltex/ltex.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ltex_version="ltex:$ltex_tag"
1212

1313
(
1414
cd "$ltex_dir"
15-
docker inspect "$ltex_version" &>/dev/null || docker build . -t "$ltex_version" -t 'ltex:latest' > /dev/null
15+
docker inspect "$ltex_version" &>/dev/null || docker build --load . -t "$ltex_version" -t 'ltex:latest' > /dev/null
1616
)
1717

1818
files_to_clean=()

0 commit comments

Comments
 (0)