Dockerfile build fails with 101: Network is unreachable

Abierto
#288 1 comentario 0 reacciones 0 asignados Ver en GitHub

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

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

bug
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

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de libracoder/kiri

Todos los issues de libracoder/kiri

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.