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

Function runContainerCommand

agent/app/service/container.go:1487–1493  ·  view source on GitHub ↗
(cli *client.Client, containerID string, command []string)

Source from the content-addressed store, hash-verified

1485}
1486
1487func runContainerCommand(cli *client.Client, containerID string, command []string) (string, error) {
1488 raw, err := runContainerCommandRaw(cli, containerID, command)
1489 if err != nil {
1490 return "", err
1491 }
1492 return strings.TrimSpace(string(raw)), nil
1493}
1494
1495type closeHookReader struct {
1496 io.ReadCloser

Callers 6

ListContainerFilesMethod · 0.85
DeleteContainerFileMethod · 0.85
UploadContainerFileMethod · 0.85
GetContainerFileSizeMethod · 0.85
DownloadContainerFileMethod · 0.85
isContainerDirFunction · 0.85

Calls 1

runContainerCommandRawFunction · 0.85

Tested by

no test coverage detected