palworld-server-docker
palworld-server-docker copied to clipboard
Removed root processes
trafficstars
Context
- Continuation of #167
- Allows container to be ran with
--userbut still runs with PUID & GUID.
Choices
- Keeping the ability to still run as root as to not break anything.
Test instructions
[!IMPORTANT] You must set user to
NUMBERICAL_UID:NUMBERICAL_GIDTo find your UID runid -u& to find your GID runid -g. In the examples they are listed as 1000:1000. If you wish to run it as a different UID/GID this can by done by changing the ownership:chown UID:GID palworld/or by changing the permissions for all other:chmod o=rwx palworld/
- Try to start the container as root:root, It should work
- Try to start the container as root:steam, Given error
- Try to start the container as steam:root, Given error
- Start container with 1000:1000
- Verify rcon-cli is working:
docker exec palworld-server rcon-cli showplayers - Verify backup works:
docker exec palworld-server backup - Verify no processes are running as root:
docker exec -t palworld-server top -n 1 - Verify supercronic is running:
docker exec -t palworld-server bash -c "top -n 1 | grep --color supercronic"
Checklist before requesting a review
- [] I have performed a self-review of my code
- [x] I've added documentation about this change to the README.
- [x] I've not introduced breaking changes.