MCPcopy Create free account
hub / github.com/ddev/ddev / GetDockerClient

Function GetDockerClient

pkg/dockerutil/docker_manager.go:106–112  ·  view source on GitHub ↗

GetDockerClient returns the Go context and the Docker API client

()

Source from the content-addressed store, hash-verified

104
105// GetDockerClient returns the Go context and the Docker API client
106func GetDockerClient() (context.Context, client.APIClient, error) {
107 dm, err := getDockerManagerInstance()
108 if err != nil {
109 return nil, nil, err
110 }
111 return dm.goContext, dm.apiClient, nil
112}
113
114// GetDockerClientInfo returns the Docker system information from the daemon
115func GetDockerClientInfo() (system.Info, error) {

Callers 15

TestDdevExecFunction · 0.92
CleanupFunction · 0.92
IsMutagenVolumeMountedFunction · 0.92
LogsMethod · 0.92
CaptureLogsMethod · 0.92
TestGetContainerHealthFunction · 0.92
TestDockerExecFunction · 0.92
TestRemoveVolumeFunction · 0.92
TestNetworkDuplicatesFunction · 0.92
deleteDdevImagesFunction · 0.92
RemoveVolumeFunction · 0.85

Calls 1

getDockerManagerInstanceFunction · 0.85

Tested by 6

TestDdevExecFunction · 0.74
TestGetContainerHealthFunction · 0.74
TestDockerExecFunction · 0.74
TestRemoveVolumeFunction · 0.74
TestNetworkDuplicatesFunction · 0.74