How to use GitHub
- Please use the 👍 reaction to show that you are affected by the same issue.
- Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
- Subscribe to receive notifications on status change and new comments.
Steps to reproduce
- Have a system with selinux enabled (e.g. Fedora)
- Clone nextcloud-docker-dev
- Run
./bootstrap.sh
- Start Nextcloud
docker compose up nextcloud proxy
Expected behaviour
Nextcloud should start and be available at https://nextcloud.local
Actual behaviour
Access to the docker socket is denied (the same probably applies to the mounted nextcloud workspace and apps, but it doesn't get as far to notice).
Workaround
Everything works correctly when disabling selinux globally (sudo setenforce 0), however, this is obviously not a great solution to apply regularly.
Proposed solution
For this use case, I think, the most pragmatic solution would be running the containers with --security-opt label=disabled where needed (i.e. disabling selinux separation for the container, which is still better than doing it for the whole system). I can provide a pull request if desired.
Server configuration
Web server: Apache/Nginx (all of them)
Database: MySQL/Maria/SQLite/PostgreSQL (all of them)
PHP version: 8.5/8.4/8.3 (all of them)
Nextcloud version: all
How to use GitHub
Steps to reproduce
./bootstrap.shExpected behaviour
Nextcloud should start and be available at https://nextcloud.local
Actual behaviour
Access to the docker socket is denied (the same probably applies to the mounted nextcloud workspace and apps, but it doesn't get as far to notice).
Workaround
Everything works correctly when disabling selinux globally (
sudo setenforce 0), however, this is obviously not a great solution to apply regularly.Proposed solution
For this use case, I think, the most pragmatic solution would be running the containers with
--security-opt label=disabledwhere needed (i.e. disabling selinux separation for the container, which is still better than doing it for the whole system). I can provide a pull request if desired.Server configuration
Web server: Apache/Nginx (all of them)
Database: MySQL/Maria/SQLite/PostgreSQL (all of them)
PHP version: 8.5/8.4/8.3 (all of them)
Nextcloud version: all