How to change the server port after created a container
Closed this issue · 2 comments
TooonyChen commented
I'm a newbie to using docker. I follow the step on readme.md, created my csgo server, and installed a mod. But after that, I could not connect to the server by IP port forwarding (xx.xxx.xxx.xxx:27015), I could only connect with 192.168.100.3:27015. So I wonder how to change the server port after creating the container. Is there any method to change it? Thanks!
CM2Walki commented
Hello,
there is no way to change the port at runtime, you'll have to recreate the container. I usually use Portainer, which is a ´docker´ dashboard, for this job, since it allows you to duplicate or replace existing containers with the same initial docker run
parameters.
TooonyChen commented
Thank you so much! I will try Portainer.