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

Function Down

agent/utils/compose/compose.go:178–186  ·  view source on GitHub ↗
(filePath string)

Source from the content-addressed store, hash-verified

176}
177
178func Down(filePath string) (string, error) {
179 if err := checkCmd(); err != nil {
180 return "", err
181 }
182 base, extra := getComposeBaseCmd()
183 args := append(extra, loadFiles(filePath)...)
184 args = append(args, "down", "--remove-orphans")
185 return cmd.NewCommandMgr(cmd.WithTimeout(20*time.Minute)).RunWithStdout(base, args...)
186}
187
188func Stop(filePath string) (string, error) {
189 if err := checkCmd(); err != nil {

Callers

nothing calls this directly

Calls 4

checkCmdFunction · 0.85
getComposeBaseCmdFunction · 0.85
loadFilesFunction · 0.85
RunWithStdoutMethod · 0.45

Tested by

no test coverage detected