Non-Root Container User
By default, the application runs as the root
user inside the container. However, it’s recommended to run the application as a non-root user for security reasons.
While Slink cannot enforce this, additional steps are required to run the application as a non-root user:
-
Create persistent directories on the host machine:
Terminal window mkdir -p /path/to/slink/imagesmkdir -p /path/to/slink/data -
Change ownership of the directories to correspond to container user:
Terminal window chown -R 1000:1000 /path/to/slink -
Update the
docker-compose.yml
file to run the application as a non-root user:services:slink:image: anirdev/slink:latestuser: slink# Your other configurations -
Then you can proceed with the installation guide.