Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

`docker pull` resume downloading layer option

オープン
#7,166 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
40/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
docker, go
領域
cli

調査の方向性

まず、大きなレイヤーのダウンロードを中断して、報告された docker pull の失敗を再現し、この CLI リポジトリの pull エントリポイントとレイヤーダウンロード処理を調査します。後続の pull で部分的なレイヤーが再利用され、対応するバイト位置から再開される一方で、完了済みのレイヤーに対する正常な動作が維持されれば、作業は完了です。

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

説明

kind/feature status/0-triage status/more-info-needed
Description

During the docker pull process, if a connection problem occurs—which is common with unstable Wi‑Fi, VPN drops, router sleep, NAT issues, MTU problems, and so on—Docker will not reuse partially downloaded layers, so on the next docker pull starts downloading that layer over:

$ sudo docker pull beevelop/cordova:latest                                                                                                                                                                                   
latest: Pulling from beevelop/cordova                                                                                                                                                                                                      
6f245fbb6da7: Download complete                                                                                                                                                                                                            
fc3c89a8c92a: Download complete                                                                                                                                                                                                            
bd35bf817417: Downloading [=>                                                 ]   34.6MB/880.4MB                                                                                                                                           
1f573660f4aa: Downloading [==>                                                ]  41.94MB/814MB                                                                                                                                             
617772c7d19b: Downloading [=========================================>         ]   34.6MB/41.57MB                                                                                                                                           
97344555eef9: Downloading [=====>                                             ]  16.81MB/144.7MB                                                                                                                                           
a7fb98a8eddd: Download complete                                                                                                                                                                                                            
ef3e291e2bea: Downloading [===>                                               ]  28.31MB/459.9MB                                                                                                                                           
4f4fb700ef54: Already exists                                                                                                                                                                                                               
869f03e2bc59: Downloading [=============>                                     ]   73.4MB/273.1MB                                                                                                                                           
d4fa1733c83a: Downloading [========>                                          ]  24.12MB/143.1MB                                                                                                                                           
9cf22b159730: Download complete                                                                                                                                                                                                            
8369f9fca54c: Downloading [===============================>                   ]  46.14MB/72.66MB                                                                                                                                           
bb0deee347b7: Download complete                                                                                                                                                                                                            
short read: expected 144729115 bytes but got 16806391: unexpected EOF                                                                                                                                                                      

$ sudo docker pull beevelop/cordova:latest                                                                                                                                                                                   
latest: Pulling from beevelop/cordova                                                                                                                                                                                                      
d4fa1733c83a: Pulling fs layer                                                                                                                                                                                                             
6f245fbb6da7: Pulling fs layer                                                                                                                                                                                                             
4f4fb700ef54: Already exists                                                                                                                                                                                                               
9cf22b159730: Pulling fs layer                                                                                                                                                                                                             
1f573660f4aa: Pulling fs layer                                                                                                                                                                                                             
a7fb98a8eddd: Pulling fs layer                                                                                                                                                                                                             
8369f9fca54c: Pulling fs layer                                                                                                                                                                                                             
869f03e2bc59: Pulling fs layer                                                                                                                                                                                                             
617772c7d19b: Downloading [=>                                                 ]  1.049MB/41.57MB                                                                                                                                           
97344555eef9: Pulling fs layer                                                                                                                                                                                                             
bd35bf817417: Pulling fs layer                                                                                                                                                                                                             
fc3c89a8c92a: Pulling fs layer                                                                                                                                                                                                             
ef3e291e2bea: Pulling fs layer                                                                                                                                                                                                             
bb0deee347b7: Download complete  

It might not be a big deal when the sizes of those layers are small, but it could be annoying if the layer size and downloaded part size are huge. Is there a way for Docker to cache layers locally so that it can automatically resume downloading from the corresponding byte?

主要言語
Go
スター
6.1k
フォーク
2.2k
平均マージ
1日 10時間
マージ済み PR(30日)
47

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

docker/cli のほかの issue

docker/cli の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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