In this process images are getting downloaded into the /opt/stack/data/zun/images/xxxxxxxxxxxxx.tar file (devstack)
we have to load those images(xxxxx.tar) into the docker repository using following command:
docker load < xxxxxxxxxxxxxxxxxx.tar
but there is a problem the image will be loaded with default name. i.e., if i upload cirros image as cir_updated into glance. After downloading tar file from glance and doing - docker load < xxxxxxxxxxxxxxxx.tar. docker images will show only cirros:latest as the tag name. It wont show cir_updated:latest.
So for this i have two suggestions:
1. We have to edit the manifest.json file which is residing inside the xxxxxxx.tar
We can find cirros:latest which we have to change as glance_image-name:latest.
Or
2. After loading the image, add new tag to that loaded image using tag command.
docker tag docker_image_id glance_imagename:latest
then remove the old cirros:latest image using docker rmi cirros. So that it will untag the cirros:latest.
Also if we pass image_id as the parameter means we have to get the corresponding image name from glance. and we have to pass image_name instead of image_id.
Hi all,
i have some suggestion regarding this.
Following code changes have to be done in zun:
In this process images are getting downloaded into the /opt/stack/ data/zun/ images/ xxxxxxxxxxxxx. tar file (devstack)
we have to load those images(xxxxx.tar) into the docker repository using following command:
docker load < xxxxxxxxxxxxxxx xxx.tar
but there is a problem the image will be loaded with default name. i.e., if i upload cirros image as cir_updated into glance. After downloading tar file from glance and doing - docker load < xxxxxxxxxxxxxxx x.tar. docker images will show only cirros:latest as the tag name. It wont show cir_updated:latest.
So for this i have two suggestions:
1. We have to edit the manifest.json file which is residing inside the xxxxxxx.tar
[{"Config" :"f8ce316a37a79 a89cb6f9ef65f23 b38893fe291b519 a8b18cf08af6587 2f02a9. json"," RepoTags" :["cirros: latest" ],"Layers" :["533e131ca4c4 c44518e65b0e4e9 7fa4e8f694e8508 f82763b8bcd3c37 6335f42/ layer.tar" ,"5cdf968d25c37 4ae189e9454d824 bcf7df858f4fb10 8fa911dbc728f4a 4c0802/ layer.tar" ,"64fd92eec6d14 d474cc7d3321be5 2c8b7d922ab42c6 848de9beb511791 4868b0/ layer.tar" ,"78fbfd1ba6e55 9553c5d6d45d4e2 7a07a1ddcf54d91 c14290c01211155 5d6f54/ layer.tar" ,"8d9719d7eab84 8cd65b3f2db0412 1dcc849779509c4 9dcb8dae909e385 9d5800/ layer.tar" ]}]
We can find cirros:latest which we have to change as glance_ image-name: latest.
Or
2. After loading the image, add new tag to that loaded image using tag command. imagename: latest
docker tag docker_image_id glance_
then remove the old cirros:latest image using docker rmi cirros. So that it will untag the cirros:latest.
Also if we pass image_id as the parameter means we have to get the corresponding image name from glance. and we have to pass image_name instead of image_id.
Please consider if its worth.
thanks & regards,
Dharmalingam S