docker-monitoring/main.go

20 lines
275 B
Go
Raw Permalink Normal View History

2023-04-05 13:59:51 +00:00
package main
import (
"context"
"fmt"
"git.faercol.me/monitoring/docker-monitoring/versions"
)
func main() {
clt := versions.New(context.Background())
containers, err := clt.GetRunningContainers()
if err != nil {
panic(err)
}
fmt.Printf("%#v\n", containers)
}