Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for running Docker container as non-root user #60

Open
courtarro opened this issue Feb 18, 2022 · 1 comment
Open

Add support for running Docker container as non-root user #60

courtarro opened this issue Feb 18, 2022 · 1 comment

Comments

@courtarro
Copy link

Currently the entrypoint script writes the env.js file to a root-owned folder, so starting the Docker container as non-root causes this to fail. One standard approach is to put env.js in a subfolder that can be mounted as a volume instead, like /var/www/html/env/env.js. That way the Docker container can be set to start as the same user who owns the mounted volume.

The /var/www/html/env/ directory can exist within the image (owned by root) so that anyone wanting to run the server like before, as root, it will still work fine.

@almereyda
Copy link

The available container runs fine through Podman rootless:

podman run --rm -d -p 8080:80 -e SERVER_URL=http://navidrome:4533 tamland/airsonic-refix:latest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants