Skip to content

Commit

Permalink
Expose ability to set docker auth for private repos
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Tyng <ptyng@underarmour.com>
  • Loading branch information
Paul Tyng authored and arekkas committed Jul 6, 2017
1 parent dd8f9ab commit 6d57cd4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dockertest.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ type RunOptions struct {
Mounts []string
Links []string
ExposedPorts []string
Auth dc.AuthConfiguration
}

// RunWithOptions starts a docker container.
Expand Down Expand Up @@ -144,7 +145,7 @@ func (d *Pool) RunWithOptions(opts *RunOptions) (*Resource, error) {
if err := d.Client.PullImage(dc.PullImageOptions{
Repository: repository,
Tag: tag,
}, dc.AuthConfiguration{}); err != nil {
}, opts.Auth); err != nil {
return nil, errors.Wrap(err, "")
}
}
Expand Down

0 comments on commit 6d57cd4

Please sign in to comment.