Files
hertzbeat/script/docker/server
tomsun28and铁甲小宝 c5808a0430 [doc] update release 1.6.0 doc (#2074)
Signed-off-by: tomsun28 <tomsun28@outlook.com>
Co-authored-by: 铁甲小宝 <2922035952@qq.com>
2024-06-11 00:18:14 +08:00
..
2024-05-10 00:41:59 +08:00
2024-05-19 07:34:34 +08:00

Use the buildx to build Docker images that support multiple system architectures

https://vuepress.mirror.docker-practice.com/buildx/multi-arch-images/

$ docker buildx create --use --name=mybuilder-cn --driver docker-container --driver-opt image=dockerpracticesig/buildkit:master

# for tencent environment
$ docker buildx create --use --name=mybuilder-cn --driver docker-container --driver-opt image=dockerpracticesig/buildkit:master-tencent

$ docker buildx create --use --name mybuilder --driver docker-container

$ docker buildx use mybuilder

Build the image

# Use the --platform flag to specify the target platforms for the build --push flag to push the image to a registry
$ docker buildx build --platform linux/arm64,linux/amd64 -t apache/hertzbeat:v1.0.0 . --push

$ docker buildx build --platform linux/arm64,linux/amd64 -t quay.io/tancloud/hertzbeat:latest . --push

# Inspect the image info
$ docker buildx imagetools inspect apache/hertzbeat:v1.0.0