Skip to content
This repository has been archived by the owner on Jun 11, 2021. It is now read-only.

Commit

Permalink
Merge pull request softprops#11 from seal-software/use-auth-when-pull…
Browse files Browse the repository at this point in the history
…-images

use auth when pulling images
  • Loading branch information
softprops committed Feb 26, 2015
2 parents 7bc301a + f979772 commit d63935b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/scala/Methods.scala
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,9 @@ trait Methods { self: Requests =>
def tag(t: String) = copy(_tag = Some(t))
def registry(r: String) = copy(_registry = Some(r))
def apply[T](handler: Docker.Handler[T]) =
request(base.POST / "create" <<? query)(handler)
request(base.POST / "create" <:< authConfig.map(
("X-Registry-Auth" -> _.headerValue)
) <<? query)(handler)

def query = (
Map("fromImage" -> _fromImage)
Expand Down

0 comments on commit d63935b

Please sign in to comment.