Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

feat: Root support, only binary copied from original image, dependencies installed manually #6

Merged
merged 3 commits into from
Apr 27, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix: Privilege drop supporting root
  • Loading branch information
lholota committed Apr 27, 2020
commit 7c6c0e89c9fce58ad2c7182be9e52b3264310542
4 changes: 1 addition & 3 deletions fs/etc/services.d/cadvisor/run
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/with-contenv sh

s6-setuidgid nonroot

exec /usr/bin/cadvisor $CADVISOR_ARGS
exec s6-setuidgid "$PUID:$PGID" /usr/bin/cadvisor $CADVISOR_ARGS