使用build构建
docker build . -t runyf/derper:v1.68.1
使用buildx构建
docker run --rm --privileged tonistiigi/binfmt:latest --install all
ls -lh /proc/sys/fs/binfmt_misc
docker buildx create --name multi-arch-builder --driver docker-container --bootstrap --use
docker buildx inspect multi-arch-builder
docker buildx build --platform linux/amd64,linux/arm64 -t runyf/derper:v1.68.1 --push .
更多命令
docker login -u runyf
登录到docker hubdocker tag runyf/derper:v1.68.1 runyf/derper:latest
修改镜像标签docker push runyf/derper:v1.68.1
推送到docker hub