Install Magento2 Enterprise on desktop Mac via Docker

I am trying to install a fresh install of Magento2.3.3 enterprise on my local Mac desktop via docker.I am new to docker so maybe i am missing something.

I installed composer, and also docker.

The error i am getting says

 To initialize a project, please create a composer.json file as described in the 
 https://getcomposer.org/ "Getting Started" section
 Could not open input file: /app/bin/magento

 An error has occurred. Removing newly installed files and/or Docker containers.

I tried manually creating a composer.json file and putting the below in it

{
    "require": {
       "magento/product-enterprise-edition": "2.3.3"
    }
 }

I also made sure my yml file has my correct Magento public and private keys. I am using the tutorial here https://www.magemodule.com/all-things-magento/magento2-freebies/magento2-docker-vm-script/



from Active questions tagged magento-enterprise - Magento Stack Exchange

Click link to view all answer https://magento.stackexchange.com/questions/297961/install-magento2-enterprise-on-desktop-mac-via-docker