How to execute Server Commands in a running Container?
DanDev-De opened this issue · 3 comments
Ive started the container:
sudo docker run -d --rm -p 7777:7777 -v $HOME/terraria/world:/root/.local/share/Terraria/Worlds --name="terraria" -e WORLD_FILENAME=<.wld world_filename_here> ryshe/terraria:latest
tried to use the docker attach command. Got into the Console but cant interact.
Any ideas
I think in your run command you need to use the -it flags. That way when you attach you will have terminal access.
…
On Mon, Oct 5, 2020 at 2:56 PM DanDev-De @.***> wrote: Ive started the container: sudo docker run -d --rm -p 7777:7777 -v $HOME/terraria/world:/root/.local/share/Terraria/Worlds --name="terraria" -e WORLD_FILENAME=<.wld world_filename_here> ryshe/terraria:latest tried to use the docker attach command. Got into the Console but cant interact. Any ideas — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#53>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB46ERYUCD6LBAGB7WMRLQDSJIQHFANCNFSM4SFDW2NA .
Thanks alot. That works
Addendum: Run ryshe/erraria in the unread Docker and add - it in the Extra Parameters to complete the task
补充:unraid docker中运行ryshe/terraria 在额外参数中添加 -it 即可