[英]Using Docker API to pull from a private registry
从私有注册表中提取图像的语法是什么?
我正在尝试使用API重现以下命令:
docker pull localhost:5000/oillio/my_app:1.0-SNAPSHOT
看起来我很抱歉使用images / create调用。 有4个参数,fromImage,fromSrc,repo,tag和Registry。 我一辈子都想不通如何设置这些参数来重现上述命令。
与此类似的东西对我有用:
curl -X POST localhost:2375/images/create?fromImage=localhost:5000/oillio/my_app&tag=1.0-SNAPSHOT
其中localhost:2375
是我的私人服务器
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.