Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 908 Bytes

ctn-build.md

File metadata and controls

28 lines (23 loc) · 908 Bytes

The Dockerfile supports building and cross compiling docker daemon and extra tools using Docker Buildx and BuildKit. A bake definition named docker-bake.hcl is in place to ease the build process:

# build binaries for the current host platform
# output to ./bundles/binary-daemon by default
docker buildx bake
# or
docker buildx bake binary

# build binaries for the current host platform
# output to ./bin
DESTDIR=./bin docker buildx bake

# build dynamically linked binaries
# output to ./bundles/dynbinary-daemon by default
DOCKER_STATIC=0 docker buildx bake
# or
docker buildx bake dynbinary

# build binaries for all supported platforms
docker buildx bake binary-cross

# build binaries for a specific platform
docker buildx bake --set *.platform=linux/arm64