DockerEndpoint returns the current docker endpoint
()
| 458 | |
| 459 | // DockerEndpoint returns the current docker endpoint |
| 460 | func (cli *DockerCli) DockerEndpoint() docker.Endpoint { |
| 461 | if err := cli.initialize(); err != nil { |
| 462 | // Note that we're not terminating here, as this function may be used |
| 463 | // in cases where we're able to continue. |
| 464 | _, _ = fmt.Fprintln(cli.Err(), cli.initErr) |
| 465 | } |
| 466 | return cli.dockerEndpoint |
| 467 | } |
| 468 | |
| 469 | func (cli *DockerCli) getDockerEndPoint() (ep docker.Endpoint, err error) { |
| 470 | cn := cli.CurrentContext() |
nothing calls this directly
no test coverage detected