dradis / dradis-ce

Dradis Framework: Collaboration and reporting for IT Security teams
https://dradis.com/ce/
GNU General Public License v2.0
672 stars 190 forks source link

Docker container fails to start on Raspberry Pi 5 #1233

Open maxvaer opened 8 months ago

maxvaer commented 8 months ago

If I try to start the docker container a Raspberry Pi 5 like: docker run -it -p 3000:3000 dradis/dradis-ce
the command fails with the following error: exec /usr/local/bundle/bin/bundle: exec format error A quick google search reveals, that this seems to be a platform relatet issue: https://stackoverflow.com/questions/73285601/docker-exec-usr-bin-sh-exec-format-error Relevant Docker inspect output:

"Architecture": "arm64",
"Os": "linux",

Output of uname -a: Linux ubuntu 6.5.0-1010-raspi #13-Ubuntu SMP PREEMPT_DYNAMIC Thu Jan 18 09:08:04 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux Some dependencies seem not to work with the Raspberry Pi architecture.

aapomm commented 8 months ago

Thanks for reporting @maxvaer! I just want to note that our Docker setup is still a WIP. In the meantime, can you confirm if you're getting the same result when using the arm64 image by adding the option in your docker run: --platform=linux/arm64?

maxvaer commented 8 months ago

Thanks for your reply.
This still results in the same output: docker run -it --platform=linux/arm64 -p 3000:3000 dradis/dradis-ce Outputs: exec /usr/local/bundle/bin/bundle: exec format error