improve test coverage

This commit is contained in:
Simon Aronsson 2019-04-17 15:36:35 +02:00
parent 16b66ac10b
commit f8dd9bb02a
4 changed files with 148 additions and 18 deletions

View file

@ -34,7 +34,7 @@ type Client interface {
// * DOCKER_TLS_VERIFY whether to verify tls certificates
// * DOCKER_API_VERSION the minimum docker api version to work with
func NewClient(pullImages bool) Client {
cli, err := dockerclient.NewEnvClient()
cli, err := dockerclient.NewClientWithOpts(dockerclient.FromEnv)
if err != nil {
log.Fatalf("Error instantiating Docker client: %s", err)