Open GabrielJean opened 2 years ago
hi, just start the container with screen its a tool where u can send commands from ur shell and run them in a virtual screen that u can close and open without the running process in it get killed...
not sure but i think the docker image thats flying around here is based on ubuntu so you should do the following to have a working fix for ur solution:
sudo apt install screen
screen -v
This should reply the Version number of screen...
Now all you need to do is add the following infront of your Docker run -it ..... command:
screen -dmS TBot
Just an Example of your Docker command naked:
Docker run -it --name TBot-Ogamed --expose 9090:9090/tcp omlet05/tbot
this would turn into
screen -dmS TBot Docker run -it --name TBot-Ogamed --expose 9090:9090/tcp omlet05/tbot
after that if you have only one screen open just use:
screen -r
or if you have multiple screens open you have to use the session id
screen -ls
screen -r SESSION ID (Number infront of the first DOT)
CTRL + A + D to disconnect the Screen (Bot keeps running)
Ctrl+a c
Ctrl+a "
Ctrl+a 0
Ctrl+a A
Ctrl+a S
Ctrl+a |
Ctrl+a tab
Ctrl+a Ctrl+a
Ctrl+a Q
Ctrl+a X
Now i just saw its allready explained in the AWS install Section ;)
Hello,
I'm trying to package this into a reusable docker image that I can run in the background, but the software keeps crashing when using the docker option "-d"
It works fine interactively with"-it" though.
Thanks