docker-client-clj icon indicating copy to clipboard operation
docker-client-clj copied to clipboard

Pull endpoint

Open MichaelStephan opened this issue 9 years ago • 4 comments

Hello,

when do you plan to add image pull endpoint?

Thanks for information.

Cheers, Michael

MichaelStephan avatar Jun 18 '15 23:06 MichaelStephan

My plan was to add endpoints lazily, as needed. If you need it, I can add it; I'll likely have some time this weekend.

wkf avatar Jun 20 '15 14:06 wkf

I looked at this over the weekend; the pull endpoint isn't as straightforward as I thought (hoped) it would be. It still shouldn't be too hard, but I'll have to try to give it some more time this week.

wkf avatar Jun 22 '15 15:06 wkf

this is a super quick and dirty version of pull.

(ns foo 
  (:require [docker-client.support.rest :as rest]))
(slurp (rest/post c {} :create-image {} {:as :stream :query-params {"fromImage" "mysql:5.7.16"}}))

kudos to the lib for allowing me to get unstuck by myself!

alguevara7 avatar Nov 06 '16 05:11 alguevara7

That's awesome @alexguev, thanks for sharing!

wkf avatar Nov 07 '16 14:11 wkf