# ed machines docker top

> Reads the processes running inside one container, the same way the app's Processes tab does.

- Canonical URL: https://getedith.pro/docs/cli/machines-docker/top
- Updated: 2026-12-02

Reads the processes running inside one container, the same way the app's Processes tab
does.

```
ed machines docker top <machine> <container> [--json]
```

## Arguments

| Name | Type / values | Default | What it does |
| --- | --- | --- | --- |
| `<machine>` | machine name, ssh alias, id, or unambiguous prefix | required | Which machine to ask. |
| `<container>` | container name or id | required | Which container's processes to read. |

## Options

| Name | Type / values | Default | What it does |
| --- | --- | --- | --- |
| `--json` | flag | off | Emit a stable array instead of the process table. |
| `--help`, `-h` | flag | off | Print help and exit 0. |

Plain output has PID, user, CPU, memory and command columns. JSON uses the stable
keys `pid`, `user`, `cpuPercent`, `memoryPercent` and `command`. Percentage
values remain strings because docker may return platform-specific sentinel text.

The shared operation first requests explicit process columns and falls back to
the platform's default `docker top` layout. It has a 30 second timeout and keeps
the order docker returns.

## Examples

```
ed machines docker top devbox api
ed machines docker top devbox api --json | jq -r '.[] | [.pid, .command] | @tsv'
```

## Where to go next

- [`ed machines docker`](https://getedith.pro/docs/cli/machines-docker), the rest of this group
- [All `ed` commands](https://getedith.pro/docs/cli)

## Get Edith

Edith is a native Mac app for macOS 14 or later on Apple silicon with 100+ extensions, the `ed` command line and an MCP server. $35 once for one Mac, plus $7 for each additional Mac, with no subscription and a 30-day refund.

- [Buy Edith](https://getedith.pro/pricing): $35 once for one Mac, plus $7 for each additional Mac
- [Download Edith](https://getedith.pro/download): the installer, or Homebrew
