为树莓派构建Docker Arm镜像
https://blog.cnscud.com/docker/2021/11/17/docker-buildx.html
关键命令:
docker buildx version
docker buildx create --name mybuilder(or whatever name)
docker buildx use mybuilder(or whatever name)
docker buildx ls
docker buildx build --platform linux/amd64,linux/arm64 -t dockerhub.domain.com/laonanblog:1.0 . --push
如果要支持32位arm
docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t dockerhub.domain.com/laonanblog:1.0 . --push