-
Notifications
You must be signed in to change notification settings - Fork 184
[BUG] Docker Compose fails with "operation not permitted", likely due to restrictive security options #171
Description
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
-
clone the repository
git clone git@github.com:BetterBahn/betterbahn.git -
enter the directory
cd betterbahn -
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