Hi, trying to import images from a private docker v1 registry on my SmartOS host, I noticed that layered docker images do not get "pulled" completely on the first run, but need further subsequent 'imgadm import's to pull all docker layers.
A docker image may consist of several layers. These layers then correspond to separate images. An extract of a 'imgadm import' operation may give the idea: Imported image 9146f2aa-4ae1-742b-9a64-9ea8cd52a87f (docker-layer@cdc045a9f23c) Imported image 64bcb004-bec9-c1b5-ddbe-e839f56562dc (docker-layer@26a37fb8a5f6) Imported image ec2d56e1-5ab6-2288-b030-81d9fa7eafaa (docker-layer@0ddf5c37e1ae) Imported image ddac6311-543e-199f-5444-bd97923ff7b3 (docker-layer@dbe96cc72ea3) Imported image 80fa9898-d3e8-218a-0f52-1208bbde9499 (docker-layer@e5d26896c5e4) Imported image 37fff1de-641b-5c63-b2e4-17b200711f70 (docker-layer@996f02e0d349) Imported image 3743ee28-db4d-1fc4-d740-cac636c178cd (docker-layer@696dfaae5b9f) Imported image 9ef21636-857e-a568-84c3-a925bd49b9b8 (docker-layer@1241323c52d7) Imported image fdf84ace-e07d-0fc2-288e-5b80ca356324 (docker-layer@903b83b725aa) Imported image c3709ead-5967-817d-b54f-14bbc7cfb31c (docker-layer@abc44ffaf6dd) Only with a all layers present, the docker image is usable. When importing such a "layered" docker image from my private docker registry, the import correctly stated the number of images to import, but only imported the first layer not present on my machine. imgadm list --docker then gave the most recently pulled docker layer and corresponding image as the image I was trying to pull (dckrreg1.hb22.cruwe.de:5000/cjr/squid-base in that case). I needed to 'imgadm import' seven times again, as each missing layer was incrementally pulled and imported with the result of 'imgadm list --docker' changing in that process. I am reasonably certain that this does not constitute expected or even desired behaviour. Would it be okay to file an issue against joyent/smartos-live on github or is a different place more fitting? In addition, can I offer something more than this description? I did not find any logs which could be useful. Thanks for your consideration, cheers, -- Christopher ------------------------------------------- smartos-discuss Archives: https://www.listbox.com/member/archive/184463/=now RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00 Modify Your Subscription: https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb Powered by Listbox: http://www.listbox.com
