docker 查詢或獲取私有倉庫(registry)中的鏡像

docker 查詢或獲取私有倉庫(registry)中的鏡像,使用nginx

 

    docker search 192.168.1.8:5000docker

 

命令經測試很差使。curl

 

解決:測試

 

一、獲取倉庫類的鏡像:url

 

[root@shanghai docker]# curl -XGET http://192.168.1.8:5000/v2/_catalogcode

 

{"repositories":["nginx"]}it

 

 

 

二、獲取某個鏡像的標籤列表:io

 

[root@shanghai docker]# curl -XGET http://192.168.1.8:5000/v2/image_name/tags/listtest

 

{"errors":[{"code":"NAME_UNKNOWN","message":"repositoryname not known toregistry","detail":{"name":"image_name"}}]}im

 

 

 

[root@shanghai docker]# curl -XGET http://192.168.1.8:5000/v2/nginx/tags/list

 

{"name":"nginx","tags":["latest"]}

 

[root@shanghai docker]#

 

參考:

 

https://stackoverflow.com/questions/23733678/how-to-search-images-from-private-1-0-registry-in-docker

相關文章
相關標籤/搜索