Dockerfile build fails with 101: Network is unreachable
メンテナーはふだん 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 の本文から書いたものです。
説明
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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
libracoder/kiri のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
libracoder/kiri#364 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
libracoder/kiri#289 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 47/100
libracoder/kiri#365 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
libracoder/kiri#362 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 47/100
libracoder/kiri#359 ·
メンテナーはふだん 1 日以内に返信
libracoder/kiri の issue をすべて見る
似ている issue
-
benchmark-review
難易度 2/5 1〜3時間 初心者へのやさしさ 63/100
メンテナーはふだん 1 日以内に返信
-
area:filesystem bug need-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
Captions panel does not offer to show an existing transcript対応中かも @thedavidweng が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
CapSoftware/Cap#4276 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
matrix-org/matrix-rust-sdk#7495 ·
メンテナーはふだん 1 日以内に返信