docker buildx
Last updated on January 17, 2025 am
🧙 Questions
m1的mac打包镜像,linux上无法启动
☄️ Ideas
# 开启buildx
docker buildx install
# 创建容器
docker buildx create --name spark-yun-builder
# docker buildx rm vibrant_hamilton
# docker buildx ls
# 选择容器
docker buildx use spark-yun-builder
# 构建镜像
docker buildx build --platform linux/amd64,linux/arm64/v8 -t isxcode/zhiqingyun:0.0.2 -f ./Dockerfile .
# docker push镜像
docker push isxcode/zhiqingyun:0.0.2
# 退出
docker buildx uninstall
🔗 Links
docker buildx
https://ispong.isxcode.com/kubernetes/docker/docker buildx/