Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
VanL opened this issue Mar 24, 2025 · 1 comment
Open
Labels
bug Something isn't working

Comments

@VanL
Copy link

VanL commented Mar 24, 2025

Describe the bug
The documentation says: "The Docker image has been updated to run as a non-root user." However, lines 30-32 of the docker-compose.yml file say:
volumes:
- .env:/opt/scancodeio/.env
- /etc/scancodeio/:/etc/scancodeio/
[etc]
If this directory has not been created by the root user, then this mapping fails and the web and worker images fail to be created/load.

System configuration

  • This is the current version, running using podman/podman-compose on Debian 13/Trixie.

To Reproduce
Steps to reproduce the behavior:

  1. git clone https://github.com/aboutcode-org/scancode.io.git && cd scancode.io
  2. make envfile
  3. docker compose build
  4. docker compose up
  5. Error:
    Error: "scancodeio_web_1" is not a valid container, cannot be used as a dependency: no container with name or ID "scancodeio_web_1" found: no such container
    Error: "scancodeio_web_1" is not a valid container, cannot be used as a dependency: no container with name or ID "scancodeio_web_1" found: no such container
    [web] | Error: no container with name or ID "scancodeio_web_1" found: no such container
    [nginx] | Error: no container with name or ID "scancodeio_nginx_1" found: no such container
    [worker] | Error: no container with name or ID "scancodeio_worker_1" found: no such container

Expected behavior
Should start all containers and go up.

@VanL VanL added the bug Something isn't working label Mar 24, 2025
@imfeniljikadara
Copy link

Hey @VanL , Let me look into it. I've cloned the repository on my system let me know any specific files should I look into? though I'm understanding how container is build. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants