Dockerfile build fails with 101: Network is unreachable

オープン
#288 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
42/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
docker, rust
領域
devops, networking

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
Rust
スター
7.5k
フォーク
329
平均マージ
7時間 48分
マージ済み PR(30日)
105

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

libracoder/kiri のほかの issue

libracoder/kiri の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。