Closed Isoterik closed 11 months ago
Hey @Isoterik happy to hear everything works now, Awesome!
Permissions
By default the Docker-Engine gets installed as root and the normal way Docker-Containers are run is also as root:root, it only differs if you use mechanics like users or user-remaps or UID/GID redirects. But thats not standard, while it is considered Best Practice. I did not include this in this Repo to keep things simple and make sure the setup i provide works everywhere.
May i provide a handy way to handle the server with screen?
The screen cmd you use looks nice and you might have a good use for it, but i personally host this via docker-compose mostly or "docker run -d ..." and use "docker logs -f ID" to watch logs. Thats simpler for me. Also i dont tend to use "-it" / "-i -t" in containers i host, i dont need them interactive, i somewhere learned its considered kinda Bad-Practice in "Container Hosting", therefore i did not include this in this Repo.
thanks for the reply @jammsen. i have only basic knowledge of docker. never read anything indepth. so i learned something again! you can consider this issue closed from my side :)
Great! Thanks for your input and ideas and also thanks for sharing them! A good source to learn more about Docker is the Best-Practice pages:
Hello there! 1st of all, thanks for ur work.
i had a little permission issue setting things up.
as u stated under getting started:
and then running:
docker run --rm -i -t -p 8766:8766/udp -p 27016:27016/udp -p 9700:9700/udp -v $(pwd)/steamcmd:/steamcmd -v $(pwd)/game:/sonsoftheforest --name sons-of-the-forest-dedicated-server jammsen/sons-of-the-forest-dedicated-server:latest
it was unable to download the game into the /game folder. for /steamcmd it worked fine.
after that i deleted the /game folder and the /steamcmd folder. and then ran the bash command again. everything was now downloaded but i was unable to edit dedicatedserver.cfg and ownerswhitelist.txt due of a permission issue. then i checked the /game folder and /steamcmd folder permissions and it was both set as root:root (that did u might also encounter and then added the step to create the folders before running the docker command?).
so i changed the permissions for /game and /steamcmd
sudo chown -R your_username:your_username game/
since i am not running things there as root user.now everything works like charm!
may i provide a handy way to handle the server with screen?
start_sonsoftheforest.sh
stop_sonsoftheforest.sh