CM2Walki / Squad

Dockerfile for automated build of a Squad gameserver: https://hub.docker.com/r/cm2network/squad/
https://CM2.Network
MIT License
36 stars 20 forks source link

Failed to Start Server with Windows docker #19

Closed 0400H closed 2 years ago

0400H commented 2 years ago
docker run -d ^
    --net=host ^
    -e PORT=7787 ^
    -e QUERYPORT=27165 ^
    -e RCONPORT=21114 ^
    -e FIXEDMAXPLAYERS=10 ^
    -e FIXEDMAXTICKRATE=20 ^
    -v "D:\ProgramData\steam\squad\server":/home/steam/squad-dedicated ^
    --name="squad-dedicated-server" ^
    %image%

2021-12-25 084326 SquadGame.log

CM2Walki commented 2 years ago

--net=host does not work with Docker for Windows, use -p 7788/tcp -p 7788/udp -p 27166/tcp -p 27166/udp -p 21115/tcp -p 21115/udp instead