[PR #2384] [MERGED] fix: ensure /tmp is writable by container user in Docker image #8227

Closed
opened 2026-04-20 18:06:06 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-vikunja/vikunja/pull/2384
Author: @tink-bot
Created: 3/10/2026
Status: Merged
Merged: 3/10/2026
Merged by: @kolaente

Base: mainHead: fix/docker-tmp-permissions


📝 Commits (1)

  • 8ab40bf fix: ensure /tmp is writable by container user in Docker image

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 Dockerfile (+1 -1)

📄 Description

Summary

  • Fixes /tmp ownership in the scratch-based Docker image so SQLite can create temp files when running as UID 1000
  • The COPY --from=apibuilder /tmp /tmp directive copied /tmp with root ownership, but the container runs as USER 1000, causing disk I/O error: permission denied on operations that need SQLite temp files (task position changes, saved filter creation, data export)
  • Adds --chown=1000:1000 to the COPY directive

Closes #2316


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-vikunja/vikunja/pull/2384 **Author:** [@tink-bot](https://github.com/tink-bot) **Created:** 3/10/2026 **Status:** ✅ Merged **Merged:** 3/10/2026 **Merged by:** [@kolaente](https://github.com/kolaente) **Base:** `main` ← **Head:** `fix/docker-tmp-permissions` --- ### 📝 Commits (1) - [`8ab40bf`](https://github.com/go-vikunja/vikunja/commit/8ab40bfbed9b1a27b1b8d6f138c733170599d54f) fix: ensure /tmp is writable by container user in Docker image ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `Dockerfile` (+1 -1) </details> ### 📄 Description ## Summary - Fixes `/tmp` ownership in the scratch-based Docker image so SQLite can create temp files when running as UID 1000 - The `COPY --from=apibuilder /tmp /tmp` directive copied `/tmp` with root ownership, but the container runs as `USER 1000`, causing `disk I/O error: permission denied` on operations that need SQLite temp files (task position changes, saved filter creation, data export) - Adds `--chown=1000:1000` to the COPY directive Closes #2316 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-20 18:06:06 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vikunja#8227