Skip to content

Commit

Permalink
Fix for: WRN The open files limit is too low (1024) and may cause cra…
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikeburke14 authored Nov 24, 2024
1 parent 19b574c commit 379068d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ RUN deluser --remove-home ubuntu
RUN adduser --home /home/sdtdserver --disabled-password --shell /bin/bash --disabled-login --gecos "" sdtdserver \
&& chown -R sdtdserver:sdtdserver /home/sdtdserver

#Set ulimit as recommended by the game.
RUN echo 'sdtdserver soft nofile 10240' >> /etc/security/limits.conf

##Need use xterm for LinuxGSM##
ENV PUID=1000 PGID=1000 \
START_MODE=0 \
Expand Down
5 changes: 5 additions & 0 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,10 @@ services:
- 8080:8080/tcp # OPTIONAL - WEBADMIN
- 8081:8081/tcp # OPTIONAL - TELNET
- 8082:8082/tcp # OPTIONAL - WEBSERVER https://7dtd.illy.bz/wiki/Server%20fixes
ulimits:
nofile:
soft: "10240"
hard: "10240"

restart: unless-stopped # INFO - NEVER USE WITH START_MODE=4 or START_MODE=0
```

0 comments on commit 379068d

Please sign in to comment.