使用Docker API从私有registry中获取

什么是从私人registry中拉出图像的语法?

我正在尝试用API重现下面的命令:

docker pull localhost:5000/oillio/my_app:1.0-SNAPSHOT 

它看起来像我supposted使用图像/创build调用。 有4个参数,从图像,从SRC,回购,标签和registry。 我不能为了我的生活找出如何设置这些参数来重现上述命令。

类似的东西已经为我工作:

 curl -X POST localhost:2375/images/create?fromImage=localhost:5000/oillio/my_app&tag=1.0-SNAPSHOT 

localhost:2375是我的私人服务器