[docker-in-docker] Not working with Docker Desktop and Enhanced Container Isolation
Maintainer thường phản hồi trong vòng 5 ngày
@v-Mathiyarasy đang làm issue này rồi.
Từ ngày 7/4/2025.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
The feature docker-in-docker fails to start the docker daemon with the error message
mount: /sys/kernel/security: permission denied.
dmesg(1) may have more information after failed mount system call.
Could not mount /sys/kernel/security.
AppArmor detection and --privileged mode might break.
when using a devcontainer with the Docker Desktop Hyper-V backend and having Enhanced Container Isolation enabled.
The container is started using --privileged however there are still some restrictions:
Containers become harder to breach. For example, sensitive system calls are vetted and portions of /proc and /sys are emulated inside the container.
This part of the code that checks for AppArmor stops the start, even though it would otherwise work perfectly fine.
if [ -d /sys/kernel/security ] && ! mountpoint -q /sys/kernel/security; then
mount -t securityfs none /sys/kernel/security || {
echo >&2 'Could not mount /sys/kernel/security.'
echo >&2 'AppArmor detection and --privileged mode might break.'
}
fi
When building the container with ECI disabled and then running the built container with it enabled, everything works fine.
I would propose to either add a feature flag to disable the check or remove it altogether, however I am not too sure how many run into issues with running AppArmor inside a devcontainer base container.
- Ngôn ngữ chính
- Shell
- Star
- 1.5k
- Fork
- 624
- Merge trung bình
- 4 ngày 8 giờ
- Pull request đã merge (30 ngày)
- 7
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay 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 devcontainers/features
-
use mise for java feature installation or make sdkman configuable to download JDK from mirrosĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
devcontainers/features#1730 ·
Maintainer thường phản hồi trong vòng 5 ngày
-
Version resolution over unauthenticated git makes feature installs fail hard, with no fallbackCó thể đã có người làm @v-Kaniska244 đã nhận 35 ngày trước. Đang mở
devcontainers/features#1726 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 5 ngày
-
[docker-in-docker] v4 with iptablesSwitchAtRuntime:true default on Ubuntu 26.04 host/devcontainer image activates iptables-legacy instead of iptables-nftCó thể làm lại được @v-Kaniska244 đã nhận 53 ngày trước và không có pull request nào đang mở. Đang mở
devcontainers/features#1709 · 1 reaction · 1 người được giao ·
Maintainer thường phản hồi trong vòng 5 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
devcontainers/features#1707 ·
Maintainer thường phản hồi trong vòng 5 ngày
-
Parser failure on "localEnv:" in devcontainer-feature.jsonCó thể làm lại được @v-Kaniska244 đã nhận 68 ngày trước và không có pull request nào đang mở. Đang mở
devcontainers/features#1704 · 1 reaction · 1 người được giao ·
Maintainer thường phản hồi trong vòng 5 ngày
Tất cả issue của devcontainers/features
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
-
Set wallpaperĐang mởnew-addition
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 60/100
-
needs-triage Platform(Default)
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
winapps-org/winapps#984 ·
-
Bluetooth can't be turned back on from the bar on ThinkPads: rfkill block removes the adapterĐang mở
Độ 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