nextcloud / nextcloud/nextcloud-docker-dev
Setup does not work with Selinux
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- PHP
- Estrellas
- 190
- Forks
- 103
- Merge medio
- 4 h 36 min
- PR fusionados (30 d)
- 1
Descripción
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
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Comienza con bootstrap.sh y las definiciones de Docker Compose utilizadas por docker compose up nextcloud proxy; reproduce el fallo con SELinux enforcing e inspecciona los montajes del socket y del workspace. Se considera terminado cuando el entorno de desarrollo se inicia y Nextcloud está disponible en https://nextcloud.local sin deshabilitar SELinux globalmente.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- docker, docker-compose, linux
- Área
- devops, infrastructure
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Tranquilo
- Claridad
- Bastante claro
- Aptitud para principiantes
- 55/100