# Build EE with ansible-builder on Mac ARM CPU

**URL:** <https://forum.ansible.com/t/build-ee-with-ansible-builder-on-mac-arm-cpu/1667>\
**Category:** Get Help\
**Tags:** ansible-builder\
**Created:** [October 12, 2023, 7:24am UTC](https://forum.ansible.com/t/build-ee-with-ansible-builder-on-mac-arm-cpu/1667 "2023-10-12T07:24:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![iamroddo](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/iamroddo/32/321_2.png) [@iamroddo](https://forum.ansible.com/u/iamroddo)\
**Post date:** [October 12, 2023, 7:24am UTC](https://forum.ansible.com/t/build-ee-with-ansible-builder-on-mac-arm-cpu/1667/1 "2023-10-12T07:24:22Z")

</div>

AFAIK using Docker to build an image for AMD64 on ARM64-based hardware (such as Mac M1/2) requires setting a few different CLI options

- `docker buildx build` instead of `docker build`
- adding the switch `--platform linux/amd64`
- adding the switch `--push=true` to publish the image to a repository

Is there any option to passing these arguments to `ansible-builder` (3.0.0) in order to build (and publish) the image, or would building and publishing need to be done with `docker` and only use `ansible-builder` to create the Dockerfile?

---

<div class="post-metadata">

**Author:** ![gotmax23](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/gotmax23/32/106_2.png) [@gotmax23](https://forum.ansible.com/u/gotmax23)\
**Post date:** [October 27, 2023, 2:47am UTC](https://forum.ansible.com/t/build-ee-with-ansible-builder-on-mac-arm-cpu/1667/2 "2023-10-27T02:47:22Z")

</div>

I don’t think ansible-builder allows passing arbitrary args to the container engine. Calling `ansible-builder create` to create the build context and then calling `docker build context` directly with your desired arguments is probably your best bet.
