TG-FileStreamBot
TG-FileStreamBot copied to clipboard
Container keeps on restarting
Hello. I try to deploy bot on my vps using docker. I created a config.env containing the variables set in the TG-FileStreamBot folder and start my container. However the bot is not responding. Check docker ps again, the status of the container shows Restarting (1) ... seconds ago.
root@vps2:~/TG-FileStreamBot# docker run -d --restart unless-stopped --name fsb
-v /PATH/TO/.env:/app/.env
-p 8000:8000
stream-bot 433df2b431d11f057b4aa993ed0c5e2228cb09d13ae3dfeb3a9b5fe93809d272
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 433df2b431d1 stream-bot "python3 -m WebStrea…" 10 minutes ago Restarting (1) 57 seconds ago fsb
I met a similar problem and my log suggest that it cannot process | when typing. While it might not be the same problem you met, I just want to note here that I solved mine by change python:3.9-alpine in Dockerfile to python:3.10-alpine.
you did not change the path of your config file in the docker run command:
-v /PATH/TO/.env