Skip to content

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:

  1. Create persistent directories on the host machine:

    Terminal window
    mkdir -p /path/to/slink/images
    mkdir -p /path/to/slink/data
  2. Change ownership of the directories to correspond to container user:

    Terminal window
    chown -R 1000:1000 /path/to/slink
  3. Update the docker-compose.yml file to run the application as a non-root user:

    services:
    slink:
    image: anirdev/slink:latest
    user: slink
    # Your other configurations
  4. Then you can proceed with the installation guide.