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

App runs as root #26

Closed
fernandocollova opened this issue Mar 19, 2018 · 1 comment
Closed

App runs as root #26

fernandocollova opened this issue Mar 19, 2018 · 1 comment

Comments

@fernandocollova
Copy link

What happens?

When I run ps -ely inside the container, I get this:

S UID PID PPID C PRI NI RSS SZ WCHAN TTY TIME CMD
S 0 1 0 0 80 0 748 1073 wait ? 00:00:00 sh
S 0 6 1 0 80 0 48940 236308 - ? 00:00:08 python3
S 0 40 0 0 80 0 3648 4989 wait ? 00:00:00 bash
R 0 49 40 0 80 0 1564 7486 - ? 00:00:00 ps

What should've happened?

I shouldn't see python3 running as root

How to reproduce?

Create the app's container as stated in the repo, run docker-compose exec playmeker /bin/bash and inside the console run ps -ely

Some meta?

Not much, I just think running a web server as root is not cool. Also, I don't know why sh is in PID 1, as you seem to be setting the ENTRYPOINT correctly in your dockerfile.

And, also again, I don't know why github is removing the spcaes in the "What happens?" part. I tried to format it as nice as I could.

@NoMore201
Copy link
Owner

Solved with commit f3828fd. If you already have an fdroid directory on your host you need to chown it

# chown -R 999:999 /path/to/fdroid

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