Setup does not work with Selinux
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ả
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
- 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
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của nextcloud/nextcloud-docker-dev
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
nextcloud/nextcloud-docker-dev#483 · 1 bình luận · 3 reaction ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
nextcloud/nextcloud-docker-dev#480 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
-
Linux Manjaro supportĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
nextcloud/nextcloud-docker-dev#446 · 1 bình luận · 1 reaction ·
Tất cả issue của nextcloud/nextcloud-docker-dev
Issue tương tự
-
RFC
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Performance: faster AopComposerLoader::findFile() for classes outside the cache (~1.6 µs per class)Đang mởEnhancement Performance
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
bug customer-reported
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
MagnaCapax/PMSS#1009 ·
Maintainer thường phản hồi trong vòng 5 ngày
-
product / databases product / functions product / self-hosted product / storage sdk / cli
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày