Skip to content

[BUG] Docker Compose fails with "operation not permitted", likely due to restrictive security options #171

@FelixSchmidmeir

Description

@FelixSchmidmeir

Describe the bug
When freshly cloning the betterbahn repo and starting the service with Docker Compose, the container fails with the following error:

betterbahn-1 | exec /usr/local/bin/docker-entrypoint.sh: operation not permitted

To Reproduce

  1. clone the repository
    git clone git@github.com:BetterBahn/betterbahn.git

  2. enter the directory
    cd betterbahn

  3. run the app with Docker Compose
    docker compose -f docker-compose/docker-compose.yaml --project-directory=./ up -d

Expected behavior
The container should start without problems and the application should be served at localhost:3000

Cause (suspected)
The restrictions in docker-compose/docker-compose.yaml seem to be too restrictive. If I for example remove the following section the container starts just fine.

security_opt:
    - no-new-privileges=true 

Environment:

Docker version: 28.4.0
Docker Compose version: v2.39.1
OS: Ubuntu 24.04.3 LTS

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdo-not-staleIssue will not be automatically marked as stale or closed after prolonged inactivity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions