dhammon / ai-goat

Learn AI security through a series of vulnerable LLM CTF challenges. No sign ups, no cloud fees, run everything locally on your system.
GNU General Public License v2.0
205 stars 25 forks source link

【./ai-goat.py --run ctfd 】have error #5

Closed yida223 closed 1 month ago

yida223 commented 3 months ago

this is good project! but I ran into a problem. first:

image

so i change code in runner.py

image

but it's not success

image

my docker-compose version is: 1.29.2

dhammon commented 3 months ago

@yida223 Thank you for your interest in this project! :D

I tested on a fresh Ubuntu install and could not reproduce (CTFd loaded fine). I think this may be caused by a local configuration on your end. Judging by your first screenshot error, it seems the process running ai-goat.py isn't finding the docker-compose executable. This https://stackoverflow.com/questions/72446973/unknown-shorthand-flag-d-in-d-docker-compose article shows the same error suggesting similar.

Confirm docker compose is installed and in your PATH with which docker-compose. From the ai-goat directory, where the docker-compose.yml is located, try running docker-compose up ctfd -d.

yida223 commented 3 months ago

Thank you for your answer. Still not solved the problem, I will try to change the server environment and try again.