Use buildx build linux/arm64 in docker-compose file - Stack Overflow

Ask questions Research chat →

https://stackoverflow.com/questions/59756123/use-buildx-build-linux-arm64-in-docker-compose-file · scraped

deploy

Attachments

Scraped Content

— 68 words · 2026-02-14 03:07:00 UTC ·

Excerpt

Try COMPOSE_DOCKER_CLI_BUILD=1 \ DOCKER_BUILDKIT=1 \ DOCKER_DEFAULT_PLATFORM=linux/amd64 \ docker-compose build DOCKER_BUILDKIT Enable (1) or disable (0) BuildKit builds DOCKER_DEFAULT_PLATFORM Set the default platform for commands that take the --platform flag COMPOSE_DOCKER_CLI_BUILD Configure whether to use the Compose built-in python client (0) for building images or the native docker cli (1). By default, Compose uses the docker CLI to perform builds, which allows you to use BuildKit to perform builds.
Try COMPOSE_DOCKER_CLI_BUILD=1 \ DOCKER_BUILDKIT=1 \ DOCKER_DEFAULT_PLATFORM=linux/amd64 \ docker-compose build DOCKER_BUILDKIT Enable (1) or disable (0) BuildKit builds DOCKER_DEFAULT_PLATFORM Set the default platform for commands that take the --platform flag COMPOSE_DOCKER_CLI_BUILD Configure whether to use the Compose built-in python client (0) for building images or the native docker cli (1). By default, Compose uses the docker CLI to perform builds, which allows you to use BuildKit to perform builds.

Visibility

Visible to everyone

Reading Status

Related Bookmarks

My Note


Saved!

Annotations

Export as Markdown
+ Annotate selection

Add Annotation