cogentapps / chat-with-gpt

An open-source ChatGPT app with a voice
https://www.chatwithgpt.ai
MIT License
2.31k stars 495 forks source link

Error response from daemon #114

Open khanfar opened 1 year ago

khanfar commented 1 year ago

when i put this command in terminal docker run -v $(pwd)/data:/app/data -p 3000:3000 ghcr.io/cogentapps/chat-with-gpt:release i got this error : C:\Users\Lenovo>docker run -v $(pwd)/data:/app/data -p 3000:3000 ghcr.io/cogentapps/chat-with-gpt:release docker: Error response from daemon: create $(pwd)/data: "$(pwd)/data" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path. See 'docker run --help'.

cogentapps commented 1 year ago

It seems like you are using Windows, and the command you're using is for Unix-based systems (Linux and macOS). In Windows, you need to use %cd% instead of $(pwd) to get the current working directory. Try running the following command in your Command Prompt:

docker run -v %cd%/data:/app/data -p 3000:3000 ghcr.io/cogentapps/chat-with-gpt:release

If you are using PowerShell, you can use the following command:

docker run -v ${PWD}/data:/app/data -p 3000:3000 ghcr.io/cogentapps/chat-with-gpt:release