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  元数据

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM