You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently docker exec uptime whoami results in root. I want to run this whole container as a different user using this dockerfile.
FROM louislam/uptime-kuma:1
RUN adduser --system --group uptime
USER uptime
But I get a bunch of:
==> Performing startup jobs and maintenance tasks
chown: changing ownership of '/app/data/kuma.db': Operation not permitted
chown: changing ownership of '/app/data/kuma.db-wal.bak20211022112928': Operation not permitted
chown: changing ownership of '/app/data/kuma.db-wal.bak20211101090108': Operation not permitted
chown: changing ownership of '/app/data/kuma.db-shm.bak20211101090108': Operation not permitted
chown: changing ownership of '/app/data/kuma.db.bak20211022112928': Operation not permitted
chown: changing ownership of '/app/data/kuma.db.bak20211101090108': Operation not permitted
chown: changing ownership of '/app/data/kuma.db.bak0': Operation not permitted
chown: changing ownership of '/app/data/kuma.db-wal.bak0': Operation not permitted
chown: changing ownership of '/app/data/kuma.db-shm.bak20211022112928': Operation not permitted
chown: changing ownership of '/app/data/upload': Operation not permitted
chown: changing ownership of '/app/data/error.log': Operation not permitted
chown: changing ownership of '/app/data/kuma.db-shm.bak0': Operation not permitted
chown: changing ownership of '/app/data': Operation not permitted
This is because the user is switched and then apparently a miantenance task starts doing chown commands. How do I disable this task? Because I want to run it before my USER line instead. Something like
RUN adduser --system --group uptime && \
mkdir -p /app/data && \
chown -R uptime:uptime /app
USER uptime
🐻 Uptime-Kuma version
1
💻 Operating System
Ubuntu 20
🌐 Browser
Chrome
🐋 Docker
No response
🏷️ Docker Image Tag
louislam/uptime-kuma:1
🟩 NodeJS Version
No response
⚠️ Please verify that this question has NOT been raised before.
We are clearing up our old issues and your ticket has been open for 3 months with no activity. Remove stale label or comment or this will be closed in 2 days.
📝 Describe your problem
Currently
docker exec uptime whoami
results inroot
. I want to run this whole container as a different user using this dockerfile.But I get a bunch of:
This is because the user is switched and then apparently a miantenance task starts doing chown commands. How do I disable this task? Because I want to run it before my
USER
line instead. Something like🐻 Uptime-Kuma version
1
💻 Operating System
Ubuntu 20
🌐 Browser
Chrome
🐋 Docker
No response
🏷️ Docker Image Tag
louislam/uptime-kuma:1
🟩 NodeJS Version
No response
🛡️ Security Policy
The text was updated successfully, but these errors were encountered: