glance-----常用命令

#查看镜像

openstack image list
glance image-list
glance image-show <id> 查看镜像具体内容

#镜像导出

openstack image save <image_id> --file <local_file_name>
glance image-download --file <file_name> <image_id> 

#镜像删除

glance image-delete <id>

#镜像上传

openstack image create "cirros" 
--file cirros-0.3.5-x86_64-disk.img 
--disk-format qcow2 --container-format bare 
--public
--progress
#--progress显示文件上传的百分比

#镜像添加元数据

 glance image-update 镜像ID --property  元数据
原文地址:https://www.cnblogs.com/jinyuanliu/p/11095066.html