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

Migrate some calls to new client function

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
This commit is contained in:
Vincent Demeester
2018-01-31 15:01:29 -08:00
parent 2227c8ad5e
commit 6977f468bb
13 changed files with 19 additions and 68 deletions

View File

@ -1372,7 +1372,8 @@ func (s *DockerSuite) TestContainerAPICreateNoHostConfig118(c *check.C) {
Image: "busybox",
}
cli, err := request.NewEnvClientWithVersion("v1.18")
cli, err := client.NewClientWithOpts(client.FromEnv, client.WithVersion("v1.18"))
c.Assert(err, checker.IsNil)
_, err = cli.ContainerCreate(context.Background(), &config, &containertypes.HostConfig{}, &networktypes.NetworkingConfig{}, "")
c.Assert(err, checker.IsNil)