fix: get the container access docker compose ps (#870)

Signed-off-by: fengshunli <1171313930@qq.com>
This commit is contained in:
fsl
2024-04-18 18:56:16 +08:00
committed by GitHub
parent 8c817cf80a
commit f1cadcbd73
2 changed files with 30 additions and 26 deletions

View File

@@ -109,3 +109,7 @@ func (c Compose) List(ctx context.Context) ([]api.Stack, error) {
func (c Compose) Down(ctx context.Context, name string) error {
return c.client.Down(ctx, name, api.DownOptions{})
}
func (c Compose) Ps(ctx context.Context, name string) ([]api.ContainerSummary, error) {
return c.client.Ps(ctx, name, api.PsOptions{})
}