Skip to content

Fix docker-compose failure for unprivileged users by avoiding /etc host bind mount#2039

Open
Monal-Reddy wants to merge 2 commits intoaboutcode-org:mainfrom
Monal-Reddy:fix-unprivileged-docker-compose
Open

Fix docker-compose failure for unprivileged users by avoiding /etc host bind mount#2039
Monal-Reddy wants to merge 2 commits intoaboutcode-org:mainfrom
Monal-Reddy:fix-unprivileged-docker-compose

Conversation

@Monal-Reddy
Copy link

@Monal-Reddy Monal-Reddy commented Jan 26, 2026

The current docker-compose files bind-mount /etc/scancodeio from the host, which fails for unprivileged users unless the directory is created as root.
This change replaces the absolute host path with a project-local directory (./etc/scancodeio), allowing Docker/Podman to auto-create the directory while preserving the expected /etc/scancodeio path inside the container.

Fixes #1641.

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.

Cannot run as unprivileged user without creating /etc/scancodeio as root

1 participant