Skip to content

Commit

Permalink
NewDockerContainer: restore "from env" behavior
Browse files Browse the repository at this point in the history
commit c31948c replaced the deprecated
`dockerclient.NewEnvClient` with `dockerclient.NewClientWithOpts`, but
did not add the `FromEnv` option to keep  the old behavior.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
  • Loading branch information
thaJeztah committed Aug 17, 2019
1 parent eb7d0dd commit 15af263
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testing/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
)

func NewDockerContainer(t testing.TB, image string, env []string, cmd []string) (*DockerContainer, error) {
c, err := dockerclient.NewClientWithOpts()
c, err := dockerclient.NewClientWithOpts(dockerclient.FromEnv)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 15af263

Please sign in to comment.