How to build Docker x64 image on Mac M1

docker buildx build –platform=linux/amd64,linux/arm64 -t mydockerhub/myimage:latest –no-cache –progress=plain .

It takes an error:
Error: multiple platforms feature is currently not supported for docker driver

The solution is:
add into the Docker a new builder with multiplatform support:
docker buildx create –name multiarch –driver docker-container –use
and than run building process again with previous command docker buildx build…..

Resources:
https://forums.docker.com/t/error-multiple-platforms-feature-is-currently-not-supported-for-docker-driver/124811