nextcloud / nextcloud/nextcloud-docker-dev

Setup does not work with Selinux

Offen
#487 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

bug
Vorherrschende Sprache
PHP
Sterne
190
Forks
103
Ø Merge
4 Std. 36 Min.
Gemergte PRs (30 T.)
1

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne mit bootstrap.sh und den Docker-Compose-Definitionen, die von docker compose up nextcloud proxy verwendet werden; reproduziere den Fehler bei aktiviertem SELinux und untersuche die Socket- und Workspace-Mounts. Als abgeschlossen gilt die Aufgabe, wenn die Entwicklungsumgebung startet und Nextcloud unter https://nextcloud.local verfügbar ist, ohne SELinux global zu deaktivieren.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
docker, docker-compose, linux
Bereich
devops, infrastructure
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Ruhig
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
55/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.