# kosa8 ps

List containers

Shows containers in the shared engine. Containers running inside a sandbox
are listed by `kosa8 sandbox ps SANDBOX` instead, because each sandbox has
its own private engine and they are deliberately not pooled together.

Like docker, only running containers are listed; -a adds the ones that
have exited.

## Flags

| Flag | Type | What it does | Default |
|---|---|---|---|
| `--all, -a` | bool | include containers that have exited |  |
| `--quiet, -q` | bool | print only container ids |  |

## Example

```
  kosa8 ps
  kosa8 ps -a          # stopped ones too
  kosa8 ps -q | xargs kosa8 stop
```

---
Source: https://docs.kosa8.com/reference/ps/
