Hi!
I cloned the repo of TFS and then I wanted to straight run the server via docker, but for some reason I'm uanble to expose those ports
Docker file contains
I added those rules to iptables
And then started the server:
(...)
I noticed that in docker inspect there's something "weird" like that:
I tried to also compile it myself, but I'm unable to install boost?
Does anyone have an idea how to solve that? Thanks in advance!
I'm so stupid, sorry, here's solution:
during
I cloned the repo of TFS and then I wanted to straight run the server via docker, but for some reason I'm uanble to expose those ports
Docker file contains
EXPOSE 7171 7172
I added those rules to iptables
sudo iptables -A INPUT -p tcp --dport 7171 --jump ACCEPT
sudo iptables -A INPUT -p tcp --dport 7172 --jump ACCEPT
iptables-save
And then started the server:
docker build -t foo . && docker run -it foo
Step 14/17 : EXPOSE 7171 7172
---> Running in 691hh8099fccf
(...)
Initializing gamestate
Loaded all modules, server starting up...
Warning: The Forgotten Server has been executed as root user, please consider running it as a normal user.
Forgotten Server Online!
I noticed that in docker inspect there's something "weird" like that:
"NetworkSettings":
{
"Bridge": "",
"SandboxID": "8fe4889ff25e9cf8d7734cecdfasf8b9c0fc817284cb0c2fd6ea21b83f25",
"HairpinMode": false,
"LinkLocalIPv6Address": "",
"LinkLocalIPv6PrefixLen": 0,
"Ports": {
"7171/tcp": null,
"7172/tcp": null
},
I tried to also compile it myself, but I'm unable to install boost?
/tfs/src/connection.cpp: In member function ‘void Connection::accept()’:
/tfs/src/connection.cpp:119:81: error: no matching function for call to ‘boost:osix_time::seconds::seconds(Connection::<unnamed enum>)’
readTimer.expires_from_now(boost:osix_time::seconds(Connection::read_timeout));
^
Does anyone have an idea how to solve that? Thanks in advance!
Post automatically merged:
I'm so stupid, sorry, here's solution:
during
doceker run
I didnt map ports from host to containerdocker build -t foo . && docker run -p 7171:7171 -it foo
Last edited: