Comments (10)
@bryab, what a strange coincidence :)
from soulseek-docker.
Feel free to link to an example configuration or issue a pull request.
from soulseek-docker.
An example is how LinuxServer.io does it here:
https://github.com/linuxserver/docker-baseimage-ubuntu/blob/master/Dockerfile#L35
https://github.com/linuxserver/docker-baseimage-ubuntu/blob/master/root/etc/cont-init.d/10-adduser
What do you think?
from soulseek-docker.
+1
from soulseek-docker.
Adding another user to run the app and have a configurable UID/GID would break the container configuration (mounted folders) for existing users that update. Any suggestions to go around that?
from soulseek-docker.
Default PUID/PGID to 0 in Dockerfile. Later check /etc/passwd for an existing user (e.g. root) with those ID's. If one doesn't exist create a new one with a generic name.
Not the cleanest example, but the general idea is sound: https://github.com/coppit/docker-inotify-command/blob/master/runas.sh
I should apologize... I would be more useful if I could, but this docker stuff is still new to me.
from soulseek-docker.
That logic would also have to reconfigure the supervisor configuration based on the active user.
from soulseek-docker.
+1
from soulseek-docker.
I have implemented this in my fork. But it required me to change the paths from /root to a new folder, which i named /slsk. Let me know if you all have any advice here, but this works for me. You must set both PUID and PGID environment variables.
from soulseek-docker.
having an issue where the container is working great but doesn't seem to respect PUID
and PGID
when writing files. my env vars are:
PUID=1027
PGID=100
UMASK=0002
from a shell inside the container files appear to be owned by root
and also have no permissions.
---------- 1 root root 1782057 May 19 03:23 '02 citys of refuge.mp3'
this is odd because the init.sh
script did manage to create a soulseek
user in etc/passwd
in the container:
soulseek:x:1027:100::/data:/bin/false
but in the end that's not a huge deal to me... what is kind of a big deal to me is that from a terminal on the machine files appear to be owned by root and have all permissions:
-rwxrwxrwx+ 1 root root 150274770 May 18 22:51 'SHXCXCHCXSH - XLR8R Podcast 574, 201901.mp3'
giving execute permission to files written to the machine from a file sharing network is... alarming, let's say.
am i doing something stupid or is there a legitimate issue here?
FWIW i am running this docker image inside synology's docker app
from soulseek-docker.
Related Issues (20)
- Rescanning Shares HOT 2
- Soulseek lost configuration after VM crash. HOT 8
- Can't login HOT 1
- No space allowed in the mount path HOT 6
- Kanji font missing HOT 5
- Docker container stopped unexpectedly HOT 3
- Pulling error no matching manifest? HOT 5
- Options->Login->uPnP HOT 1
- Options->Login->Check Ports HOT 3
- VNC Access Failes HOT 3
- Soulseek/Gluetun port conflict (6080) HOT 4
- Losing SoulseekQT's UI configuration on restart HOT 2
- changing listening port HOT 2
- feature request HOT 1
- Unable to start after container update HOT 4
- 👋 Would you like to cross reference my Nicotine-plus docker image?
- Are there daily updates or is it just a bug? HOT 5
- Issues with spaces in volumes HOT 4
- docker: invalid reference format: repository name must be lowercase. HOT 1
- supporting arm arch HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from soulseek-docker.