Docker container won't start if the daemon doesn't have root permissions on /app/data
#2039
Closed
2 tasks done
Labels
bug
Something isn't working
🛡️ Security Policy
Description
uptime-kuma/extra/entrypoint.sh
Lines 8 to 13 in cf10e26
The entrypoint assumes you have root access to the filesystem before dropping privileges, which may not be the case if you're running rootless docker or using nfs. This command fails, and since the entrypoint has
set -e
, the container exits.This is an easy one-liner fix. You could do something like (LL16)
files_ownership || echo "Warning: could not set permissions on /app/data" >&2
👟 Reproduction steps
Start uptime-kuma container with
/app/data
pointing to something where root does not have access (two easy ways as mentioned above are nfs since it squashes root by default, or rootless docker daemon)👀 Expected behavior
Container starts
😓 Actual Behavior
Container doesn't start
🐻 Uptime-Kuma Version
1.17.1
💻 Operating System and Arch
Debian
🌐 Browser
N/A
🐋 Docker Version
No response
🟩 NodeJS Version
No response
📝 Relevant log output
No response
The text was updated successfully, but these errors were encountered: