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

Beta doesn't work with --user to drop permissions #526

Open
jacobalberty opened this issue Feb 19, 2022 · 0 comments
Open

Beta doesn't work with --user to drop permissions #526

jacobalberty opened this issue Feb 19, 2022 · 0 comments

Comments

@jacobalberty
Copy link
Owner

Operating system

Debian Bullseye

UniFi Tag

beta

Docker run

docker run --rm --user unifi --init -e "PKGURL=https://dl.ui.com/unifi/6.5.55/unifi_sysvinit_all.deb" -p 8080:8080 -p 8443:8443 -p 3478:3478/udp -e TZ='Africa/Johannesburg' -v ~/unifi:/unifi --name unifi jacobalberty/unifi:beta

Bug description

It fails to start because beta tries to install unifi at launch time and it is not running as root.

I need to come up with a solution to safely run the install script as root. Perhaps through sudo or some other mechanism. Would need to perform some security auditing and cleanup on the install script too.

Steps to reproduce

Just run the docker run command line and look at the logs

Relevant log output

Reading package lists...
E: List directory /var/lib/apt/lists/partial is missing. - Acquire (13: Permission denied)
2022/02/19 18:33:38 Chown 999:999 /unifi
/usr/local/bin/docker-entrypoint.sh: line 170: cd: /usr/lib/unifi: No such file or directory
[2022-02-19 18:33:38,825] <docker-entrypoint> Starting unifi controller service.
/usr/local/bin/docker-entrypoint.sh: line 192: java: command not found
[2022-02-19 18:33:38,826] <docker-entrypoint> WARN: unifi service process ended without being signaled? Check for errors in /unifi/log.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant