Support for Docker:19 . can't run any Dockerfile

Hey guys!

we want to start building with the new --platform flag and we can’t seem to make it happen. do we have any workaround which is not using the machine command?

thats my config:

defaults: &defaults
  docker:
    - image: docker:19-git
  shell: /bin/sh -leo pipefail
  build:
    <<: *defaults
    steps:
      - checkout
      - setup_remote_docker:
          docker_layer_caching: true
          version: 19.03.8
      - run:
          name: Push application Docker image
          environment:
            AWS_REGION: us-east-1
          command: |
            set -x
            ECR_ENDPOINT=${ACC_NEW}.dkr.ecr.${AWS_REGION}.amazonaws.com
            #aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 516583145466.dkr.ecr.us-east-1.amazonaws.com 
            short_sha=5 #$(git rev-parse --short ${CIRCLE_SHA1})
            tag="${CIRCLE_BRANCH}-${short_sha}"
            docker build  -t "${ECR_ENDPOINT}/${CIRCLE_PROJECT_REPONAME}:${tag}" .
            docker tag "${ECR_ENDPOINT}/${CIRCLE_PROJECT_REPONAME}:${tag}" "${ECR_ENDPOINT}/${CIRCLE_PROJECT_REPONAME}:${CIRCLE_BRANCH}-latest"
            docker push "${ECR_ENDPOINT}/${CIRCLE_PROJECT_REPONAME}:${tag}"
            docker push "${ECR_ENDPOINT}/${CIRCLE_PROJECT_REPONAME}:${CIRCLE_BRANCH}-latest"

The error Im getting is inside the docker build and it fails for every RUN line with this error is either exit code 1
or

standard_init_linux.go:211: exec user process caused “exec format error”

for lines like
RUN ls

circle ci should support this version as its listed in here:
https://circleci.com/docs/2.0/building-docker-images/#docker-version