Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lazy-pulling fail when first pulling #1826

Open
wswsmao opened this issue Oct 9, 2024 · 1 comment
Open

Lazy-pulling fail when first pulling #1826

wswsmao opened this issue Oct 9, 2024 · 1 comment

Comments

@wswsmao
Copy link
Contributor

wswsmao commented Oct 9, 2024

Hi,I found that Lazy-pulling fail when first pulling,this is my command:

# convert org image to estargz image
$ nerdctl image convert --estargz --estargz-min-chunk-size=37625 --oci abushwang/itex:org abushwang/itex:esgz-chunk37625

# push it to my dockerhub
$ nerdctl push abushwang/itex:esgz-chunk37625

# clean local images
$ nerdctl images -q | xargs nerdctl rmi
$ nerdctl system prune

# lazy pull
# from this log we can find that nerdctl downloaded the complete image
$ time nerdctl --snapshotter=stargz run -it --rm abushwang/itex:esgz-chunk37625 echo 'hello, world!'
docker.io/abushwang/itex:esgz-chunk37625:                                         resolved       |++++++++++++++++++++++++++++++++++++++| 
manifest-sha256:bf405a3d69b6b94a96a9482ed7780104a7d76ed5593a29e9618e6d8605d9cb98: waiting        |--------------------------------------| 
config-sha256:b95e65b768e34d36210dada9714ca62726eb42c6aad5352c82eb3c89c8bbda7c:   done           |++++++++++++++++++++++++++++++++++++++| 
layer-sha256:5e58f703a96b4188633e025ef537411d8fa555dda8f27761be4839eeeefce526:    downloading    |++++----------------------------------| 164.0 Mi/1.2 GiB 
elapsed: 40.5s                                                                    total:  164.0  (4.0 MiB/s)                                       
^C

real    0m41.643s
user    0m1.062s
sys     0m0.537s

# clean and retry, seems like lazy pull works this time
$ nerdctl images -q | xargs nerdctl rmi
$ time nerdctl --snapshotter=stargz run -it --rm abushwang/itex:esgz-chunk37625 echo 'hello, world!'
docker.io/abushwang/itex:esgz-chunk37625:                                         resolved       |++++++++++++++++++++++++++++++++++++++| 
manifest-sha256:bf405a3d69b6b94a96a9482ed7780104a7d76ed5593a29e9618e6d8605d9cb98: exists         |++++++++++++++++++++++++++++++++++++++| 
config-sha256:b95e65b768e34d36210dada9714ca62726eb42c6aad5352c82eb3c89c8bbda7c:   exists         |++++++++++++++++++++++++++++++++++++++| 
elapsed: 1.9 s                                                                    total:   0.0 B (0.0 B/s)                                         
hello, world!

real    0m7.525s
user    0m0.241s
sys     0m0.079s

I am confused why the lazy pull did not work at first pull

@wswsmao
Copy link
Contributor Author

wswsmao commented Oct 10, 2024

@ktock

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant