MCPcopy
hub / github.com/google/cadvisor / Version

Method Version

integration/framework/framework.go:360–369  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

358 return containerID
359}
360func (a dockerActions) Version() []string {
361 dockerCommand := []string{"docker", "version", "-f", "'{{.Server.Version}}'"}
362 output, _ := a.fm.Shell().Run("sudo", dockerCommand...)
363 output = strings.TrimSpace(output)
364 ret := strings.Split(output, ".")
365 if len(ret) != 3 {
366 a.fm.T().Fatalf("invalid version %v", output)
367 }
368 return ret
369}
370
371func (a dockerActions) StorageDriver() string {
372 dockerCommand := []string{"docker", "info"}

Callers

nothing calls this directly

Calls 3

RunMethod · 0.65
ShellMethod · 0.65
TMethod · 0.65

Tested by

no test coverage detected