Update deprecated API call

This commit is contained in:
Dane Everitt 2019-04-03 23:58:45 -07:00
parent 4c6f2cf948
commit 447dafc76d
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53

View File

@ -78,7 +78,7 @@ func (d *DockerEnvironment) Terminate(signal os.Signal) error {
// available for it. If the container already exists it will be returned. // available for it. If the container already exists it will be returned.
func (d *DockerEnvironment) Create() error { func (d *DockerEnvironment) Create() error {
ctx := context.Background() ctx := context.Background()
cli, err := client.NewEnvClient() cli, err := client.NewClientWithOpts(client.FromEnv)
if err != nil { if err != nil {
return err return err
} }