ghcr.io/devcontainers/features/git:1 changes mode of /tmp to 755 causing "mkdir: cannot create directory ‘/tmp/.X11-unix’: Permission denied"
@v-Kaniska244 đang làm issue này rồi.
Từ ngày 17/9/2025.
- #1670 của @pstoeckle — đã đóng, không merge
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Adding feature ghcr.io/devcontainers/features/git:1 causes the mode of /tmp in the container to be changed to 0755.
This is my devcontainer.json
{
"name": "myproj",
"build": {
"dockerfile": "Dockerfile",
"context": ".."
},
"features": {
"ghcr.io/devcontainers/features/git:1": {}
}
}
and this is the Dockerfile
ARG VARIANT="3.11"
FROM mcr.microsoft.com/vscode/devcontainers/python:0-${VARIANT}
RUN ls -la /tmp
It might also be important to mention that I'm using podman. I don't have docker at hand, so I don't know if that plays a role in this bug.
When I do a "Reopen in Container" in vscode I eventually get this error:
...
[1/3] STEP 1/2: FROM mcr.microsoft.com/vscode/devcontainers/python:0-3.11 AS dev_container_auto_added_stage_label
[1/3] STEP 2/2: RUN ls -la /tmp
total 0
drwxrwxrwt. 1 root root 36 Jun 8 2023 .
dr-xr-xr-x. 1 root root 24 Sep 13 19:23 ..
drwxr-xr-x. 1 root root 0 Jun 8 2023 build-features-src
drwxr-xr-x. 1 root root 66 Jun 8 2023 dev-container-features
--> 77f2db5530a2
...
[38726 ms] Start: Run in container: test -e /tmp/.X11-unix/X0
[38727 ms]
[38727 ms]
[38727 ms] Exit code 1
[38727 ms] Start: Run in container: mkdir -p '/tmp/.X11-unix'
[38729 ms]
[38729 ms] mkdir: cannot create directory ‘/tmp/.X11-unix’: Permission denied
[38730 ms] Exit code 1
[38733 ms] Command in container failed: mkdir -p '/tmp/.X11-unix'
[38733 ms] mkdir: cannot create directory ‘/tmp/.X11-unix’: Permission denied
[38734 ms] Exit code 1
When this happens, before canceling, I can "exec" into the container from another terminal and look at /tmp in the container.
$ podman exec -t -i jovial_sutherland /bin/bash
root ➜ / $ ls -ld /tmp/
drwxr-xr-x. 1 root root 80 Sep 13 19:23 /tmp/
Somewhere/somehow the mode of /tmp got changed.
If I drop the git feature the problem does not happen.
- Ngôn ngữ chính
- Shell
- Star
- 1.5k
- Fork
- 625
- Merge trung bình
- 2 ngày 17 giờ
- Pull request đã merge (30 ngày)
- 6
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 ·
-
Version resolution over unauthenticated git makes feature installs fail hard, with no fallbackCó thể đã có người làm @v-Kaniska244 đã nhận 38 ngày trước. Đang mở
devcontainers/features#1726 · 2 bình luận · 1 người được giao ·
-
[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 56 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 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
devcontainers/features#1707 ·
-
Parser failure on "localEnv:" in devcontainer-feature.jsonCó thể làm lại được @v-Kaniska244 đã nhận 71 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 ·
Tất cả issue của devcontainers/features
Issue tương tự
-
Webcam overlay freezes during voxtype dictation while screen recording (pause_media pauses the overlay mpv)Có thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
TYPO3BestPractices/tea#2409 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug needs-triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
mattpocock/skills#1281 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
pip_install() in notebook_utils.py drops version constraints on Windows because of shell=TrueCó thể đã có người làm @prajakta128 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
openvinotoolkit/openvino_notebooks#3748 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
github_actions
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
hiero-ledger/hiero-consensus-node#27621 ·
Maintainer thường phản hồi trong vòng 1 ngày