(t *testing.T)
| 20 | ) |
| 21 | |
| 22 | func dockerClient(t *testing.T) *client.Client { |
| 23 | t.Helper() |
| 24 | cli, err := client.NewClientWithOpts() |
| 25 | if err != nil { |
| 26 | t.Fatalf("failed to obtain Docker client (%v)", err) |
| 27 | } |
| 28 | cli.NegotiateAPIVersion(context.Background()) |
| 29 | return cli |
| 30 | } |
| 31 | |
| 32 | // containerFromBuild starts a container from a local image build. |
| 33 | // |
no test coverage detected