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

Function GetServerVersion

pkg/dockerutil/docker_manager.go:206–212  ·  view source on GitHub ↗

GetServerVersion gets the cached versions of Docker provider engine This is a struct which has all info from "docker version" command

()

Source from the content-addressed store, hash-verified

204// GetServerVersion gets the cached versions of Docker provider engine
205// This is a struct which has all info from "docker version" command
206func GetServerVersion() (client.ServerVersionResult, error) {
207 dm, err := getDockerManagerInstance()
208 if err != nil {
209 return client.ServerVersionResult{}, err
210 }
211 return dm.serverVersion, nil
212}
213
214// GetDockerVersion gets the cached version of Docker provider engine
215func GetDockerVersion() (string, error) {

Callers 1

IsPodmanFunction · 0.85

Calls 1

getDockerManagerInstanceFunction · 0.85

Tested by

no test coverage detected