Skip to content

docs: fix Docker log directory and non-root UID in container examples - #134

Closed
loverustfs wants to merge 2 commits into
mainfrom
cursor/docker-log-permissions-776e
Closed

docs: fix Docker log directory and non-root UID in container examples#134
loverustfs wants to merge 2 commits into
mainfrom
cursor/docker-log-permissions-776e

Conversation

@loverustfs

@loverustfs loverustfs commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

Fixes the Docker install examples reported in rustfs/rustfs#6844.

Problem

The official rustfs/rustfs image runs as non-root rustfs (10001:10001) and sets RUSTFS_OBS_LOG_DIRECTORY=/logs in the Dockerfile. The published container docs copied the Linux package path /var/log/rustfs/. The entrypoint then tries mkdir -p /var/log/rustfs/ and fails with Permission denied.

Bind-mounted host directories also need ownership 10001:10001. Named volumes at /data and /logs inherit that ownership from the image.

Changes

English guides (source of truth):

  • Docker and Podman install: persist /logs, set RUSTFS_OBS_LOG_DIRECTORY=/logs, document bind-mount chown 10001:10001.
  • Container overview, container upgrade, reverse-proxy and Iceberg/Milvus Compose snippets: same log path.
  • Environment-variable and observability notes: image default is /logs; Linux packages still use /var/log/rustfs/.
  • Redirect /installation and /installation/ to /en/installation.

Locale files (de/fr/ja/zh): command blocks only, so docs:check fence parity passes. No translated prose was rewritten.

Linux systemd examples that create /var/log/rustfs/ on the host are unchanged.

Verification

  • Commands match the upstream Dockerfile (USER rustfs, ENV RUSTFS_OBS_LOG_DIRECTORY=/logs) and the README Docker Quick Start.
  • npm run docs:check — pass
  • npm run build — pass (2415 files generated)
Open in Web Open in Cursor 

The official image runs as UID 10001 and defaults RUSTFS_OBS_LOG_DIRECTORY
to /logs. Container examples that set /var/log/rustfs/ fail with
Permission denied because the non-root user cannot create that path.

Point Docker, Podman, Compose, and upgrade examples at /logs, document
bind-mount ownership, and 301 /installation to /en/installation.

Co-authored-by: RustFS <hello@rustfs.com>
@vercel

vercel Bot commented Aug 29, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs-rustfs-com Ready Ready Preview Aug 29, 2026 8:13pm

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 29, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
rustfs-docs aa59daa Commit Preview URL

Branch Preview URL
Aug 29 2026, 08:14 PM

docs-check requires technical fences to match English. Copy the corrected
Docker/Podman /logs commands into de, fr, ja, and zh without changing
translated prose.

Co-authored-by: RustFS <hello@rustfs.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants