# ed machines docker compose restart

> ed machines docker compose restart in the Edith ed command line reference. Restarts a compose project.

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

Restarts a compose project.

```
ed machines docker compose restart [--json] <machine> <project>
```

## Arguments

| Name | Type / values | Default | What it does |
| --- | --- | --- | --- |
| `<machine>` | machine name, ssh alias, id, or any unambiguous prefix | required | Which machine to act on. |
| `<project>` | compose project name, exactly as `compose ls` prints it | required | Which project to restart. |

## Options

| Name | Type / values | Default | What it does |
| --- | --- | --- | --- |
| `--json` | flag | off | Emit JSON on stdout instead of the one-line confirmation. |
| `--help`, `-h` | flag | off | Print the help for this command on stdout and exit 0. |

## `--json` shape

```json
{
  "action": "restart",
  "machine": "Devbox",
  "project": "noveum-local-db"
}
```

## Examples

```
ed machines devbox docker compose restart noveum-local-db
ed machines devbox docker compose restart noveum-local-db --json
```

## Behaviour notes

Runs `docker compose -p <project> restart` with a 300 second ceiling, after the
same project check. This restarts the existing containers rather than recreating
them, so a changed compose file has no effect: that needs `up`. The Docker
window restarts containers one at a time and never a whole project, so this verb
has no button behind it.

## 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
