--platform declares which OS and architecture combinations the builder can target. With the docker-container driver you usually pass platforms at build time instead. The builder only becomes active after docker buildx use or --use.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.