MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / ListAllContainers

Method ListAllContainers

agent/utils/docker/docker.go:94–104  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

92 return res, nil
93}
94func (c Client) ListAllContainers() ([]container.Summary, error) {
95 var (
96 options container.ListOptions
97 )
98 options.All = true
99 containers, err := c.cli.ContainerList(context.Background(), options)
100 if err != nil {
101 return nil, err
102 }
103 return containers, nil
104}
105
106func (c Client) CreateNetwork(name string) error {
107 _, err := c.cli.NetworkCreate(context.Background(), name, network.CreateOptions{

Callers 2

syncAgentAppInstallsFunction · 0.95
handleInstalledFunction · 0.95

Implementers 1

terminalAIClientagent/utils/terminal/ai/client.go

Calls

no outgoing calls

Tested by

no test coverage detected