MCPcopy Index your code
hub / github.com/ContainerSSH/ContainerSSH / dockerClient

Function dockerClient

internal/test/docker.go:22–30  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

20)
21
22func 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//

Callers 2

containerFromBuildFunction · 0.70
containerFromPullFunction · 0.70

Calls 1

FatalfMethod · 0.80

Tested by

no test coverage detected