fix: use ps with the -a flag

This commit is contained in:
João Victor Tavares 2025-03-07 01:22:05 +01:00
parent 58dd2f224d
commit 4292b55e12

View file

@ -282,7 +282,7 @@ func (c *DockerCommand) GetServices() ([]*Service, error) {
}
composeCommand := c.Config.UserConfig.CommandTemplates.DockerCompose
output, err := c.OSCommand.RunCommandWithOutput(fmt.Sprintf("%s ps --format '{{.ID}} {{.Service}}'", composeCommand))
output, err := c.OSCommand.RunCommandWithOutput(fmt.Sprintf("%s ps -a --format '{{.ID}} {{.Service}}'", composeCommand))
if err != nil {
return nil, err