docker buildx Has a --push Flag
I’ve been doing docker buildx build and then docker push as two separate commands. Turns out buildx build takes a --push flag that handles both.
docker buildx build --platform linux/amd64,linux/arm64 --push -t myrepo/myimage:latest .
For multi-arch images it’s not just a shortcut. The manifest has to live in the registry for the image to work across architectures,
so plain docker push on a local multi-arch build doesn’t really do what you want.