VRSEN / agency-swarm-lab

MIT License
522 stars 238 forks source link

Starting Docker on windows from CLI ISSUE with -v ./:/app #13

Open webdevtodayjason opened 4 months ago

webdevtodayjason commented 4 months ago

The issue is the way you've formatted the path (./) isn't recognized correctly by Docker on Windows.

To resolve this issue, you can specify the volume path using the absolute path of the directory you want to mount.

When using PowerShell or CMD in Windows, you can prepend the current directory with ${PWD} which stands for "Print Working Directory". This will translate to the full path of the current directory.

Here’s how you can adjust your Docker command: docker run -it -v ${PWD}:/app --rm -p 7860:7860 -e OPENAI_API_KEY=<YOUR_API_KEY> vrsen/agency-swarm