MCPcopy Index your code
hub / github.com/docker/cli / Client

Method Client

cli/command/cli.go:97–103  ·  view source on GitHub ↗

Client returns the APIClient

()

Source from the content-addressed store, hash-verified

95
96// Client returns the APIClient
97func (cli *DockerCli) Client() client.APIClient {
98 if err := cli.initialize(); err != nil {
99 _, _ = fmt.Fprintln(cli.Err(), "Failed to initialize:", err)
100 os.Exit(1)
101 }
102 return cli.client
103}
104
105// Out returns the writer used for stdout
106func (cli *DockerCli) Out() *streams.Out {

Calls 2

initializeMethod · 0.95
ErrMethod · 0.95