Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

`docker pull` resume downloading layer option

Đang mở
#7,166 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
40/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
docker, go
Lĩnh vực
cli

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện lỗi docker pull đã được báo cáo với một lần tải xuống bị gián đoạn của một layer lớn, đồng thời kiểm tra điểm vào của pull và cách xử lý việc tải xuống layer trong repository CLI này. Công việc hoàn tất khi một lần pull tiếp theo sử dụng lại layer chưa tải xong và tiếp tục từ byte tương ứng, đồng thời vẫn giữ nguyên hành vi thành công đối với các layer đã hoàn tất.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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?

Ngôn ngữ chính
Go
Star
6.1k
Fork
2.2k
Merge trung bình
1 ngày 10 giờ
Pull request đã merge (30 ngày)
47

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của docker/cli

Tất cả issue của docker/cli

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.