Dockerfile build fails with 101: Network is unreachable
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 42/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- docker, rust
- Área
- devops, networking
Línea de trabajo
Start by checking the build path used by kiri build and how it configures BuildKit networking; the report shows pulling the base image works, while build fails resolving Docker Hub metadata and the user also expected access to Debian package servers. Reproduce with the provided Dockerfile command and identify whether the failure occurs before the RUN steps. Done when the cause is identified and the build can resolve its base image and reach package sources.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Kiri version and system
0.2.1 on macOS 27.2.1
What you did
Tried to build an image via kiri build but there seems to be no network/internet access during the build. Pulling the image on its own (kiri pull node:24-bookworm-slim) works fine though. Build process then fails later when trying to resolve the packages from https://deb.debian.org. Worth mentioning that i also use NordVPN but i get the same behaviour even with it disabled.
printf '%s\n' \
'FROM node:24-bookworm-slim' \
'' \
'RUN apt-get update && apt-get install -y --no-install-recommends bash ca-certificates git ripgrep && rm -rf /var/lib/apt/lists/*' \
'RUN npm install -g --ignore-scripts @earendil-works/pi-coding-agent' \
'' \
'WORKDIR /workspace' \
'ENTRYPOINT ["pi"]' \
| kiri build -t pi-sandbox -f - .
What happened
Build fails with network connection errors
[+] Building 28.6s (3/3) FINISHED docker-container:kiri-build
=> [internal] booting buildkit 3.5s
=> => starting container buildx_buildkit_kiri-build0 3.5s
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 302B 0.0s
=> ERROR [internal] load metadata for docker.io/library/node:24-bookworm-slim 25.0s
------
> [internal] load metadata for docker.io/library/node:24-bookworm-slim:
------
Dockerfile:1
--------------------
1 | >>> FROM node:24-bookworm-slim
2 |
3 | RUN apt-get update && apt-get install -y --no-install-recommends bash ca-certificates git ripgrep && rm -rf /var/lib/apt/lists/*
--------------------
ERROR: failed to build: failed to solve: node:24-bookworm-slim: failed to resolve source metadata for docker.io/library/node:24-bookworm-slim: docker.io/library/node:24-bookworm-slim: not found
What you expected instead
Expected the build to succeed and the build process to have access to the network/internet.
Anything else
No response
- Lenguaje dominante
- Rust
- Estrellas
- 7.5k
- Forks
- 329
- Merge medio
- 7 h 48 min
- PR fusionados (30 d)
- 105
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
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 libracoder/kiri
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
libracoder/kiri#364 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
libracoder/kiri#289 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 47/100
libracoder/kiri#365 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 35/100
libracoder/kiri#362 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 3/5 1-2 días Aptitud para principiantes 47/100
libracoder/kiri#359 ·
Los mantenedores suelen responder en 1 día
Todos los issues de libracoder/kiri
Issues similares
-
benchmark-review
Dificultad 2/5 1-3 horas Aptitud para principiantes 63/100
Los mantenedores suelen responder en 1 día
-
area:filesystem bug need-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Captions panel does not offer to show an existing transcriptPosiblemente ocupada @thedavidweng la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
CapSoftware/Cap#4276 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
matrix-org/matrix-rust-sdk#7495 ·
Los mantenedores suelen responder en 1 día