Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Setup does not work with Selinux

Đang mở
#487 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
55/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
docker, docker-compose, linux
Lĩnh vực
devops, infrastructure

Hướng nghiên cứu

Bắt đầu với bootstrap.sh và các định nghĩa Docker Compose được docker compose up nextcloud proxy sử dụng; tái hiện lỗi khi SELinux enforcing và kiểm tra các mount của socket và workspace. Công việc được xem là hoàn tất khi môi trường phát triển khởi động và Nextcloud khả dụng tại https://nextcloud.local mà không vô hiệu hóa SELinux trên toàn hệ thống.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug
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

Ngôn ngữ chính
PHP
Star
192
Fork
103
Merge trung bình
33 phút
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của nextcloud/nextcloud-docker-dev

Tất cả issue của nextcloud/nextcloud-docker-dev

Issue tương tự

Thêm issue về PHP

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.