Skip to content

Setup does not work with Selinux #487

Description

@theCalcaholic

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

  1. Have a system with selinux enabled (e.g. Fedora)
  2. Clone nextcloud-docker-dev
  3. Run ./bootstrap.sh
  4. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions