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

Function GetDockerVersion

pkg/dockerutil/docker_manager.go:215–221  ·  view source on GitHub ↗

GetDockerVersion gets the cached version of Docker provider engine

()

Source from the content-addressed store, hash-verified

213
214// GetDockerVersion gets the cached version of Docker provider engine
215func GetDockerVersion() (string, error) {
216 dm, err := getDockerManagerInstance()
217 if err != nil {
218 return "", err
219 }
220 return dm.serverVersion.Version, nil
221}
222
223// GetDockerAPIVersion gets the cached API version of Docker provider engine
224// See https://docs.docker.com/engine/api/#api-version-matrix

Callers 6

GetVersionInfoFunction · 0.92
identifyFunction · 0.92
initFunction · 0.92
TestCmdVersionFunction · 0.92
CheckDockerVersionFunction · 0.85

Calls 1

getDockerManagerInstanceFunction · 0.85

Tested by 1

TestCmdVersionFunction · 0.74