MCPcopy
hub / github.com/NVIDIA/aistore / IsRunning

Function IsRunning

devtools/docker/docker.go:49–51  ·  view source on GitHub ↗

DockerRunning returns true if docker-based AIStore cluster is detected

()

Source from the content-addressed store, hash-verified

47
48// DockerRunning returns true if docker-based AIStore cluster is detected
49func IsRunning() bool {
50 return dockerRunning
51}
52
53func clustersMap() (map[int]int, error) {
54 cmd := exec.Command("docker", "ps", "--format", "\"{{.Names}}\"")

Calls

no outgoing calls