1
0
mirror of https://github.com/moby/moby.git synced 2025-07-30 18:23:29 +03:00

Remove use of deprecated client.NewEnvClient()

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2019-01-03 22:49:00 +01:00
parent 2b7e084dc9
commit c8ff5ecc09
26 changed files with 90 additions and 90 deletions

View File

@ -107,7 +107,7 @@ func (s *DockerSuite) TestInspectAPIContainerVolumeDriver(c *check.C) {
func (s *DockerSuite) TestInspectAPIImageResponse(c *check.C) {
dockerCmd(c, "tag", "busybox:latest", "busybox:mytag")
cli, err := client.NewEnvClient()
cli, err := client.NewClientWithOpts(client.FromEnv)
c.Assert(err, checker.IsNil)
defer cli.Close()