ghcr.io/devcontainers/features/git:1 changes mode of /tmp to 755 causing "mkdir: cannot create directory ‘/tmp/.X11-unix’: Permission denied"
Los mantenedores suelen responder en 5 días
@v-Kaniska244 ya está trabajando en esto.
Desde el 17/9/2025.
- #1670 de @pstoeckle — cerrado sin fusionar
Evaluación
Este issue todavía no se ha evaluado.
Descripción
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.
- Lenguaje dominante
- Shell
- Estrellas
- 1.5k
- Forks
- 624
- Merge medio
- 4 d 8 h
- PR fusionados (30 d)
- 7
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la 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.
Más de devcontainers/features
-
use mise for java feature installation or make sdkman configuable to download JDK from mirrosAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
devcontainers/features#1730 ·
Los mantenedores suelen responder en 5 días
-
Version resolution over unauthenticated git makes feature installs fail hard, with no fallbackPosiblemente ocupada @v-Kaniska244 la tomó hace 34 días. Abierto
devcontainers/features#1726 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 5 días
-
[docker-in-docker] v4 with iptablesSwitchAtRuntime:true default on Ubuntu 26.04 host/devcontainer image activates iptables-legacy instead of iptables-nftQuizá libre de nuevo @v-Kaniska244 la tomó hace 52 días y no hay ningún pull request abierto. Abierto
devcontainers/features#1709 · 1 reacción · 1 asignado ·
Los mantenedores suelen responder en 5 días
-
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
devcontainers/features#1707 ·
Los mantenedores suelen responder en 5 días
-
Parser failure on "localEnv:" in devcontainer-feature.jsonQuizá libre de nuevo @v-Kaniska244 la tomó hace 67 días y no hay ningún pull request abierto. Abierto
devcontainers/features#1704 · 1 reacción · 1 asignado ·
Los mantenedores suelen responder en 5 días
Todos los issues de devcontainers/features
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 71/100
t4t5/omdrop-owl#14 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
docs(evals): note CLAUDE_CODE_PRINT_BG_WAIT_CEILING_MS for headless eval runs that use workflowsAbiertogood first issue needs-triage priority: low
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
melodic-software/claude-code-plugins#7022 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug(backend): `make test-update` in backend/src/v2 fails because the --update flag was removedAbiertoready
Dificultad 2/5 1-3 horas Aptitud para principiantes 92/100
kubeflow/pipelines#14784 · 1 comentario ·
Los mantenedores suelen responder en 2 días