RhinoSecurityLabs / cloudgoat

CloudGoat is Rhino Security Labs' "Vulnerable by Design" AWS deployment tool
BSD 3-Clause "New" or "Revised" License
2.98k stars 626 forks source link

Platform Error on Mac M1 #180

Closed pabz616 closed 1 year ago

pabz616 commented 1 year ago

Description Encountered the following error during CloudGoat environment setup WARNING: The requested image's platform (linux/amd64/) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested

Commit e0338d9

System Mac M1, running Ventura 13.3

Steps

  1. Completed initial steps of installing CloudGoat on my machine
  2. Completed docker setup
  3. I cloned the repo and followed the steps in the README

Expected Result

Actual Result

Workaround I repeated the steps in my Kali Linux VM and got different errors, unrelated to this (separate ticket)

DaveYesland commented 1 year ago

Could you try this pull request which may fix this issue?: https://github.com/RhinoSecurityLabs/cloudgoat/pull/123

cd cloudgoat
git fetch origin pull/123/head:bug/docker-fix-non-amd64
git checkout bug/docker-fix-non-amd64

Then attempt to go through the setup and steps to reproduce your issue.

pabz616 commented 1 year ago

@DaveYesland - no luck; same error. I've seen this type of error before and it has something to do with the Docker yml file, but I can't seem to locate linux/amd64 anywhere.

jdearmas commented 1 year ago

@pabz616

Although the root cause is still under investigation. A potential work-a-round has been discovered. Let me know if this works for you!

The steps of the work-a-round:

  1. Download the cloudgoat git repository.

    git clone https://github.com/RhinoSecurityLabs/cloudgoat cd cloudgoat

  2. Build the cloudgoat Docker Image, locally.

    docker build -t cloudgoat .

  3. Run the local cloudgoat docker image as a container.

    docker run -it cloudgoat

Testing Environment Mac M1

Thank you @nobodynate for helping with this issue!

pabz616 commented 1 year ago

Yatzee! No errors for building the app Screenshot 2023-04-05 at 3 35 59 PM