idkfelix / TTS-Bot

Python Discord TTS (text-to-speech) bot that uses the ElevenLabs AI API to generate high-quality speech from text messages
1 stars 0 forks source link

Docker executable file issue #1

Open ContinualDissapointment opened 6 months ago

ContinualDissapointment commented 6 months ago

docker run -d tts-bot -v /home/REDACTED/TTS-Bot:/config.yaml 26d784c8d96c035add008b0c10d5451c76929fed944e9ecb4242bb8870ddd4c1 docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "-v": executable file not found in $PATH: unknown.

This occurred on both wsl and Base windows terminal. I looked at stackoverflow, attempted chmod as well as some docker-file modifications to no avail.

ContinualDissapointment commented 6 months ago

I was able to get past this step by modifying the command to be: docker run -v /home/REDACTED/TTS-Bot/config.yaml:/config.yaml -d tts-bot but then only get "d64159b503baca01d34c47789aadcb892a5b81b9bc47c5642c476670829ff185" after which cli returns to a prompt. Checking the lines of Docker I get: 2024-03-25 15:14:42 IsADirectoryError: [Errno 21] Is a directory: 'config.yaml' 2024-03-25 15:29:05 Traceback (most recent call last): 2024-03-25 15:29:05 File "//TTS-Bot.py", line 14, in 2024-03-25 15:29:05 with open("config.yaml", 'r') as f: 2024-03-25 15:29:05 IsADirectoryError: [Errno 21] Is a directory: 'config.yaml' I cross-referenced the error with the code and some StackOverflow articles but it doesn't look like the code's asking for a directory.